ValidateAdheresToSchema
Validates that a user-provided schema adheres to a specified JSON schema.
- type:
object - required:
["type","base_schema"]
type
- Required: Yes
- type:
string - enum:
["ValidateAdheresToSchema"]
base_schema
The base JSON schema against which the user-provided schema will be validated.
- Required: Yes
- type:
["string","object"] - Available variables:
config
Examples:
{{ config['report_validation_schema'] }}
'{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The person's name"
},
"age": {
"type": "integer",
"minimum": 0,
"description": "The person's age"
}
},
"required": ["name", "age"]
}'
$schema: http://json-schema.org/draft-07/schema#
title: Person
type: object
properties:
name:
type: string
description: The person's name
age:
type: integer
minimum: 0
description: The person's age
required:
- name
- age