which Drafts are supported?

Asked by Marian Gasparovic

https://packages.ubuntu.com/focal/python3-jsonschema says "An(other) implementation of JSON Schema (Draft 3 and 4) - Python 3.x"
Project page https://github.com/Julian/jsonschema/ says (for 3.2.0) "Full support for Draft 7, Draft 6, Draft 4 and Draft 3". Actually, it says so since version 3.0.

Is it just a copy/paste in package description or does it really support only Drafts 3 and 4?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu python-jsonschema Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I guess that the description was created at a moment when only Draft 3 and 4 were supported, and that this description inside the Ubuntu package was never changed, even though the newest version supports also Draft 6 and 7.

You have to be aware that Ubuntu is taking over packages from Debian (to avoid doble packaging work), and as far as I can see, in the newest Debian package the description is also the same.

When looking into the package python3-jsonschema for different Ubuntu releases , I see the files
/usr/lib/python3/dist-packages/jsonschema/schemas/draft3.json
/usr/lib/python3/dist-packages/jsonschema/schemas/draft4.json
/usr/lib/python3/dist-packages/jsonschema/schemas/draft6.json
/usr/lib/python3/dist-packages/jsonschema/schemas/draft7.json
but draft6 and draft7 only being available in the version for focal (which is the only version >= 3.0)

This wrong description has to be corrected in Debian, and Ubuntu will automatically inherit it.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

I suggest you report a bug. Focal isn't stable and not ready

Can you help with this problem?

Provide an answer of your own, or ask Marian Gasparovic for more information if necessary.

To post a message you must log in.