JsonSchema

JsonSchema representation of schema metadata

JSON representation
 { 
 "description" 
 : 
 string 
 , 
 "default" 
 : 
 value 
 , 
 "required" 
 : 
 [ 
 string 
 ] 
 , 
 "type" 
 : 
 [ 
 string 
 ] 
 , 
 "items" 
 : 
 { 
 object (  JsonSchema 
 
) 
 } 
 , 
 "properties" 
 : 
 { 
 string 
 : 
 { 
 object (  JsonSchema 
 
) 
 } 
 , 
 ... 
 } 
 , 
 "enum" 
 : 
 [ 
 value 
 ] 
 , 
 "jdbcType" 
 : 
 enum (  DataType 
 
) 
 , 
 "format" 
 : 
 string 
 , 
 "additionalDetails" 
 : 
 { 
 object 
 } 
 } 
Fields
description

string

A description of this schema.

default

value ( Value format)

The default value of the field or object described by this schema.

required[]

string

Whether this property is required.

type[]

string

JSON Schema Validation: A Vocabulary for Structural Validation of JSON

items

object ( JsonSchema )

Schema that applies to array values, applicable only if this is of type array .

properties

map (key: string, value: object ( JsonSchema ))

The child schemas, applicable only if this is of type object . The key is the name of the property and the value is the json schema that describes that property

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } .

enum[]

value ( Value format)

Possible values for an enumeration. This works in conjunction with type to represent types with a fixed set of legal values

jdbcType

enum ( DataType )

JDBC datatype of the field.

format

string

Format of the value as per https://json-schema.org/understanding-json-schema/reference/string.html#format

additionalDetails

object ( Struct format)

Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema

Create a Mobile Website
View Site in Mobile | Classic
Share by: