Skip to content
Snippets Groups Projects
simple_data_schema.json 3.59 KiB
Newer Older
{
  "type": "object",
  "properties": {
    "Training": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [],
        "additionalProperties": false,
        "title": "Training",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the Record to be created"
          },
          "date": {
            "description": "The date of the training.",
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "url": {
            "type": "string",
            "description": "The URL"
          },
          "subjects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coach": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [],
              "additionalProperties": false,
              "title": "coach",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The name of the Record to be created"
                },
                "family_name": {
                  "type": "string"
                },
                "given_name": {
                  "type": "string"
                },
                "Organisation": {
                  "enum": [
                    "Federal Reserve",
                    "IMF",
                    "ECB"
                  ]
                }
              }
            }
          },
          "supervisor": {
            "type": "object",
            "required": [],
            "additionalProperties": false,
            "title": "supervisor",
            "properties": {
              "name": {
                "type": "string",
                "description": "The name of the Record to be created"
              },
              "family_name": {
                "type": "string"
              },
              "given_name": {
                "type": "string"
              },
              "Organisation": {
                "enum": [
                  "Federal Reserve",
                  "IMF",
                  "ECB"
                ]
              }
            }
          },
          "duration": {
            "type": "number"
          },
          "participants": {
            "type": "integer"
          },
          "remote": {
            "type": "boolean"
          },
          "slides": {
            "type": "string",
            "format": "data-url"
          }
        },
        "$schema": "https://json-schema.org/draft/2020-12/schema"
      }
    },
    "Person": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [],
        "additionalProperties": false,
        "title": "Person",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the Record to be created"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "Organisation": {
            "enum": [
              "Federal Reserve",
              "IMF",
              "ECB"
            ]
          }
        },
        "$schema": "https://json-schema.org/draft/2020-12/schema"
      }
    }
  },
  "required": [
    "Training",
    "Person"
  ],
  "additionalProperties": false,
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}