Skip to content

[JSON Schema Draft-06] "const" keyword does not reflect to docs? #336

Description

@rinov

I tested generating documentation using const keyword of JSON Schema Draft-06, but it doesn't reflect to docs. (prmd verify schema.json was passed)

For instance, Description and Example are auto generated if using enum keyword like this.

[schema.json]

...
""
"enum": ["THIS-IS-A-CONSTANT"]
...

and $ prmd doc schema.json > schema.md

Description Example
one of:"THIS-IS-A-CONSTANT" "THIS-IS-A-CONSTANT"

In case of const keyword:

Description Example

It'd be nice if it support by default.

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions