{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.2/schemas/problem.schema.json",
  "$comment": "SaaCIP 0.2 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.2 problem details",
  "description": "Every error, as RFC 9457 problem details (section 8.7). The type is a URI under https://thesoftwarelens.com/saacip/0.1/errors/.",
  "type": "object",
  "required": [
    "type",
    "title",
    "status",
    "detail"
  ],
  "properties": {
    "type": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer",
      "minimum": 400,
      "maximum": 599
    },
    "detail": {
      "type": "string"
    },
    "errors": {
      "type": "object",
      "description": "invalid-request: the members that were wrong, and why."
    },
    "supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "unsupported-version and unsupported-profile: the versions or profiles the hub accepts."
    },
    "extensions": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/extensionId"
      },
      "description": "critical-extension: the extensions the receiver did not understand."
    }
  }
}
