Skip to content

Description keyword does not validate properly #840

Answered by Julian
jrmcmah2 asked this question in Q&A
Discussion options

You must be logged in to vote

You mean {"properties": everything_you_have_there}.

The error is telling you that your schema is invalid because the description validator, which is a validator in JSON Schema, requires a string, and you gave it something else, a dict, the dict {"type": "string}. But you don't mean to use that validator at all, you're trying to define a property of your instance.

Hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jrmcmah2
Comment options

Answer selected by jrmcmah2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants