Jump to WeChat to open
Introduction to JSON Schema
JSON Schema is a declarative language that allows you to annotate and validate JSON documents.
Example Explanation
For example, the JSON Schema instance {"properties": {"foo": {"description": "a list of test words", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]} corresponds to an object possessing the required property "foo".
The "type" property specifies that "foo" must be of type "array", while the "description" property semantically describes it as "a list of test words". Furthermore, items within "foo" must be strings.
Thus, the object {"foo": ["bar", "baz"]} is a valid instance conforming to this JSON Schema. Conversely, the object {"properties": {"foo": ["bar", "baz"]}} is not a valid instance.
Output Requirements
Your output will be parsed and type-checked against the given Schema instance. Please ensure that all fields in your output exactly match the Schema, and that no trailing commas are included!
JSON Schema Instance
{"type":"object","properties":{"output":{"type":"object","properties":{"article":{"type":"string","description":"HTML fragment of the article, containing only p, h3, and img tags"},"onlyImg":{"type":"boolean","description":"This Boolean indicates whether the entire article contains images only, with no text"}},"additionalProperties":false}},"required":["output"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}