Skip to content

inline documentation for all defined simple and derived types in json schema/XML/etc #81

@DanSmith

Description

@DanSmith

Originally posted by @borsna in #80 (comment)

One thing that could improve the json schema is adding a short documentation and example e.g:

{
  "type": "object",
  "description": "Represents a localized text value associated with a specific language.",
  "properties": {
    "LanguageTag": {
      "type": "string",
      "description": "IETF BCP 47 language tag that specifies the language and optional regional variant of the text.",
      "examples": [
        "en",
        "en-US",
        "sv",
        "de"
      ]
    },
    "Value": {
      "type": "string",
      "description": "The localized text value in the specified language."
    }
  },
  "required": [
    "LanguageTag",
    "Value"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "LanguageTag": "en",
      "Value": "Hello world!"
    },
    {
      "LanguageTag": "sv",
      "Value": "Hej världen!"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions