# JsonSchema

- [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/JsonSchema#SCHEMA_REPRESENTATION)

JsonSchema representation of schema metadata

| JSON representation |
|---|
| ``` { "description": string, "default": value, "required": [ string ], "type": [ string ], "items": { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/JsonSchema`) }, "properties": { string: { object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/JsonSchema`) }, ... }, "enum": [ value ], "jdbcType": enum (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/DataType`), "format": string, "additionalDetails": { object } } ``` |

| Fields ||
|---|---|
| `description` | `string` A description of this schema. |
| `default` | ``value (`https://protobuf.dev/reference/protobuf/google.protobuf#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 (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/JsonSchema`)`` Schema that applies to array values, applicable only if this is of type `array`. |
| `properties` | ``map (key: string, value: object (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/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 (`https://protobuf.dev/reference/protobuf/google.protobuf#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 (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/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 (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema |