{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rwth-aachen-university/json-schema/rwth-aachen-university-terms-of-service-dto-response-schema.json",
  "title": "TermsOfServiceDtoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rwth-aachen-university-tos-api-openapi.yml#/components/schemas/TermsOfServiceDtoResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/TermsOfServiceDto"
    },
    "isSuccess": {
      "type": "boolean",
      "readOnly": true
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "traceId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "TermsOfServiceDto": {
      "required": [
        "href",
        "isCurrent",
        "version"
      ],
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "description": "The version of the terms of service."
        },
        "href": {
          "type": "string",
          "description": "The URI point to the content of ToS' version",
          "format": "uri"
        },
        "isCurrent": {
          "type": "boolean",
          "description": "Indicates whether these terms of service are current or not."
        }
      },
      "additionalProperties": false,
      "description": "Represents the Data Transfer Object (DTO) for terms of service information."
    }
  }
}