{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "id": "http://localhost:8000/api/schema/0.2.0/",
  "properties": {
    "application": {
      "type": "string"
    },
    "application_url": {
      "type": "string"
    },
    "created": {
      "properties": {
        "human_readable": {
          "type": "string"
        },
        "human_readable_date_only": {
          "type": "string"
        },
        "iso": {
          "type": "string"
        }
      },
      "required": [
        "iso",
        "human_readable",
        "human_readable_date_only"
      ],
      "type": "object"
    },
    "dataset": {
      "properties": {
        "creator": {
          "properties": {
            "email": {
              "type": "string"
            },
            "first_name": {
              "type": "string"
            },
            "last_name": {
              "type": "string"
            }
          },
          "required": [
            "first_name",
            "last_name",
            "email"
          ],
          "type": "object"
        },
        "fileFormat": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "upload_date": {
          "properties": {
            "human_readable": {
              "type": "string"
            },
            "human_readable_date_only": {
              "type": "string"
            },
            "iso": {
              "type": "string"
            }
          },
          "required": [
            "iso",
            "human_readable",
            "human_readable_date_only"
          ],
          "type": "object"
        }
      },
      "required": [
        "type",
        "name",
        "fileFormat",
        "creator",
        "upload_date"
      ],
      "type": "object"
    },
    "differentially_private_library": {
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url",
        "version"
      ],
      "type": "object"
    },
    "name": {
      "type": "string"
    },
    "setup_questions": {
      "items": {
        "properties": {
          "answer": {
            "type": "string"
          },
          "attribute": {
            "type": "string"
          },
          "context": {
            "type": "string"
          },
          "longAnswer": {
            "type": "string"
          },
          "privacy_params": {
            "properties": {
              "delta": {
                "type": "number"
              },
              "epsilon": {
                "type": "number"
              }
            },
            "required": [
              "epsilon",
              "delta"
            ],
            "type": "object"
          },
          "question_num": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "question_num",
          "text",
          "attribute",
          "answer",
          "context"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "statistics": {
      "items": {
        "properties": {
          "accuracy": {
            "properties": {
              "message": {
                "type": "string"
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "value",
              "message"
            ],
            "type": "object"
          },
          "boolean_values": {
            "properties": {
              "false_value": {
                "type": "number"
              },
              "true_value": {
                "type": "number"
              }
            },
            "required": [
              "true_value",
              "false_value"
            ],
            "type": "object"
          },
          "bounds": {
            "properties": {
              "max": {
                "type": "number"
              },
              "min": {
                "type": "number"
              }
            },
            "required": [
              "min",
              "max"
            ],
            "type": "object"
          },
          "confidence_level": {
            "type": "number"
          },
          "confidence_level_alpha": {
            "type": "number"
          },
          "delta": {},
          "description": {
            "properties": {
              "html": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "html",
              "text"
            ],
            "type": "object"
          },
          "epsilon": {
            "type": "number"
          },
          "missing_value_handling": {
            "properties": {
              "fixed_value": {},
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "fixed_value"
            ],
            "type": "object"
          },
          "noise_mechanism": {
            "type": "string"
          },
          "result": {
            "properties": {
              "value": {}
            },
            "required": [
              "value"
            ],
            "type": "object"
          },
          "statistic": {
            "type": "string"
          },
          "variable": {
            "type": "string"
          },
          "variable_type": {
            "type": "string"
          }
        },
        "required": [
          "statistic",
          "variable",
          "variable_type",
          "result",
          "noise_mechanism",
          "epsilon",
          "delta",
          "missing_value_handling",
          "confidence_level",
          "confidence_level_alpha",
          "accuracy",
          "description"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "name",
    "created",
    "application",
    "application_url",
    "differentially_private_library",
    "dataset",
    "setup_questions",
    "statistics"
  ],
  "title": "OpenDP - DP Creator Schema 0.2.0",
  "type": "object",
  "version": "0.2.0"
}