Tools, FAQ, Tutorials:
JSON Type Metadata
How to add documentation information to a JSON type with metadata?
✍: FYIcenter.com
 You can add documentation information to a JSON type with 
there metadata properties:
You can add documentation information to a JSON type with 
there metadata properties:
"title" - Takes a JSON string as a short description for this JSON type.
"description" - Takes a JSON string as a long description for this JSON type.
"default" - Takes a JSON value of this JSON type as the default value. If the consumer wants to, it can use it in the case where no JSON value is provided.
"examples" - Takes a JSON array of JSON values of this JSON type as example JSON values. If the consumer wants to, it can be served JSON value examples.
The JSON schema below shows you how "title", "description", "default" and "examples" properties can be used to help documenting a JSON type:
{
  "title": "Class Survey",
  "description": "JSON schema used for class survey collected in JSON format.",
  "type": "object",
  "properties": {
    "clarity": {
      "$ref": "#/definitions/rating"
    },
    "efficiency": {
      "$ref": "#/definitions/rating"
    }
  },
  "definitions": {
    "rating": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5
    }
  },
  "default": {
    "clarity": 0,
    "efficiency": 0
  },
  "examples": [
    {
      "clarity": 5,
      "efficiency": 5
    }
  ]
}
2023-07-08, ∼1865🔥, 0💬
Popular Posts:
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...