Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title & description to union Case _s #33

Closed

Conversation

smondet
Copy link

@smondet smondet commented Jan 22, 2020

The title and description then show up properly in generated schemas, e.g.:

      "oneOf": [
        {
          "title": "inline-markdown",
          "description": "Markdown prose as a string.",
          "type": "object",
          "properties": {
            "inline-markdown": {
              "$ref": "#/definitions/unistring"
            }
          },
          "required": [
            "inline-markdown"
          ],
          "additionalProperties": false
        },
        {
          "title": "external",
          "description": "URI referencing Markdown prose in another document.",
          "type": "object",
          "properties": {
            "external": {
              "$ref": "#/definitions/unistring"
            }
          },
          "required": [
            "external"
          ],
          "additionalProperties": false
        }
      ]

@raphael-proust
Copy link
Contributor

@smondet
Copy link
Author

smondet commented Jan 25, 2020

https://gitlab.com/nomadic-labs/json-data-encoding/merge_requests/1 was merged and release is in progress 🎉

@smondet smondet closed this Jan 25, 2020
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.

None yet

2 participants