Skip to content

Update jsonschema2md.py#1

Open
acfischer42 wants to merge 1 commit into
masterfrom
acfischer42-patch-1
Open

Update jsonschema2md.py#1
acfischer42 wants to merge 1 commit into
masterfrom
acfischer42-patch-1

Conversation

@acfischer42

Copy link
Copy Markdown
Owner

Adding Required or Optional.
Adding several extra keys:

  • multipleof -minItems
    -maxItems
    -minLength
    -maxlength
    -pattern
    -title

Why: JSONSchema includes more keys that can be used to describe the data and these should be documented as well
Implementation:
-Required: since required status is on the higher hierarchy level, passing the required status to the function parse_object and then assembling it to the description line.
-other keys are added analog to the existing ones.

  • added > and
    to the description line appends for readability.
    Testing: using a JSONSchema that includes the newly implemented keys.

Adding Required or Optional.
Adding several extra keys:
- multipleof
-minItems
-maxItems
-minLength
-maxlength
-pattern
-title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant