{
  "components": {
    "schemas": {
      "AddReviewRequest": {
        "additionalProperties": false,
        "properties": {
          "decision": {
            "$ref": "#/components/schemas/ReviewDecision"
          },
          "qualityScore": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "reviewNotes": {
            "nullable": true,
            "type": "string"
          },
          "reviewerId": {
            "format": "uuid",
            "type": "string"
          },
          "reviewerJurisdiction": {
            "nullable": true,
            "type": "string"
          },
          "reviewerRole": {
            "$ref": "#/components/schemas/GovernanceRole"
          },
          "securityScore": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CatalogueHealthDto": {
        "additionalProperties": false,
        "properties": {
          "authoredCount": {
            "format": "int32",
            "type": "integer"
          },
          "authoredResolvableCount": {
            "format": "int32",
            "type": "integer"
          },
          "legacyFieldManifestCount": {
            "format": "int32",
            "type": "integer"
          },
          "manifestPresent": {
            "type": "boolean"
          },
          "manifestProblems": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "resolvableCount": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CreateInvitationRequest": {
        "additionalProperties": false,
        "properties": {
          "autoPopulate": {
            "type": "boolean"
          },
          "deliveryMethod": {
            "$ref": "#/components/schemas/DeliveryMethod"
          },
          "expiryDays": {
            "format": "int32",
            "type": "integer"
          },
          "invitationDataJson": {
            "nullable": true,
            "type": "string"
          },
          "recipientEmail": {
            "nullable": true,
            "type": "string"
          },
          "recipientPhone": {
            "nullable": true,
            "type": "string"
          },
          "recipientUserId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "sentBy": {
            "format": "uuid",
            "type": "string"
          },
          "sentByOrganizationId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateSchemaRequest": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "nullable": true,
            "type": "string"
          },
          "dataClassification": {
            "$ref": "#/components/schemas/DataClassification"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "jsonSchemaDefinition": {
            "nullable": true,
            "type": "string"
          },
          "jurisdictionCode": {
            "nullable": true,
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/SchemaLevel"
          },
          "moduleId": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          },
          "organizationId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "retentionYears": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "sensitivityLevel": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "DataClassification": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "format": "int32",
        "type": "integer"
      },
      "DeliveryMethod": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "format": "int32",
        "type": "integer"
      },
      "GovernanceRole": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "format": "int32",
        "type": "integer"
      },
      "InvitationStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "format": "int32",
        "type": "integer"
      },
      "MarketplaceSearchRequest": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "nullable": true,
            "type": "string"
          },
          "descending": {
            "type": "boolean"
          },
          "pageNumber": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "searchTerm": {
            "nullable": true,
            "type": "string"
          },
          "sortBy": {
            "nullable": true,
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "MarketplaceSearchResult": {
        "additionalProperties": false,
        "properties": {
          "pageNumber": {
            "format": "int32",
            "type": "integer"
          },
          "pageSize": {
            "format": "int32",
            "type": "integer"
          },
          "schemas": {
            "items": {
              "$ref": "#/components/schemas/SchemaDto"
            },
            "nullable": true,
            "type": "array"
          },
          "totalCount": {
            "format": "int32",
            "type": "integer"
          },
          "totalPages": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ProblemDetails": {
        "additionalProperties": {},
        "properties": {
          "detail": {
            "nullable": true,
            "type": "string"
          },
          "instance": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "PublicationRequestDto": {
        "additionalProperties": false,
        "properties": {
          "daysOverdue": {
            "format": "int32",
            "type": "integer"
          },
          "decidedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "decidedBy": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "decisionNotes": {
            "nullable": true,
            "type": "string"
          },
          "expectedUsers": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "isOverdue": {
            "type": "boolean"
          },
          "justification": {
            "nullable": true,
            "type": "string"
          },
          "requestedInvitationEnabled": {
            "type": "boolean"
          },
          "requestedJurisdictions": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "requestedMarketplaceListing": {
            "type": "boolean"
          },
          "requestedVisibility": {
            "$ref": "#/components/schemas/VisibilityType"
          },
          "reviewDueDate": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "reviewStartedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "reviews": {
            "items": {
              "$ref": "#/components/schemas/SchemaReviewDto"
            },
            "nullable": true,
            "type": "array"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/PublicationRequestStatus"
          },
          "submittedAt": {
            "format": "date-time",
            "type": "string"
          },
          "submittedBy": {
            "format": "uuid",
            "type": "string"
          },
          "useCaseDescription": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "PublicationRequestStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "format": "int32",
        "type": "integer"
      },
      "PublicationStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "format": "int32",
        "type": "integer"
      },
      "ReviewDecision": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "format": "int32",
        "type": "integer"
      },
      "SchemaDefinitionValidationDto": {
        "additionalProperties": false,
        "properties": {
          "isPublishable": {
            "type": "boolean"
          },
          "violations": {
            "items": {
              "$ref": "#/components/schemas/SchemaRuleViolationDto"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "SchemaDto": {
        "additionalProperties": false,
        "properties": {
          "archivedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "archivedBy": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "averageRating": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "basePrice": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "category": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "createdBy": {
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "nullable": true,
            "type": "string"
          },
          "dataClassification": {
            "$ref": "#/components/schemas/DataClassification"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "isInvitationEnabled": {
            "type": "boolean"
          },
          "isMarketplaceListed": {
            "type": "boolean"
          },
          "jsonSchemaDefinition": {
            "nullable": true,
            "type": "string"
          },
          "jurisdictionCode": {
            "nullable": true,
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/SchemaLevel"
          },
          "moduleId": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          },
          "organizationId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "pricingModel": {
            "nullable": true,
            "type": "string"
          },
          "publicationStatus": {
            "$ref": "#/components/schemas/PublicationStatus"
          },
          "publishedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "publishedBy": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "ratingCount": {
            "format": "int32",
            "type": "integer"
          },
          "retentionYears": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "sensitivityLevel": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "updatedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "usageCount": {
            "format": "int32",
            "type": "integer"
          },
          "visibilityType": {
            "$ref": "#/components/schemas/VisibilityType"
          }
        },
        "type": "object"
      },
      "SchemaInvitationDto": {
        "additionalProperties": false,
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "acceptedBy": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "autoPopulate": {
            "type": "boolean"
          },
          "deliveredAt": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "deliveryMethod": {
            "$ref": "#/components/schemas/DeliveryMethod"
          },
          "deliveryStatus": {
            "nullable": true,
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "invitationDataJson": {
            "nullable": true,
            "type": "string"
          },
          "invitationToken": {
            "nullable": true,
            "type": "string"
          },
          "isExpired": {
            "type": "boolean"
          },
          "isValid": {
            "type": "boolean"
          },
          "recipientEmail": {
            "nullable": true,
            "type": "string"
          },
          "recipientPhone": {
            "nullable": true,
            "type": "string"
          },
          "recipientUserId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "resultingDocumentId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "resultingVaultId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "sentAt": {
            "format": "date-time",
            "type": "string"
          },
          "sentBy": {
            "format": "uuid",
            "type": "string"
          },
          "sentByOrganizationId": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/InvitationStatus"
          }
        },
        "type": "object"
      },
      "SchemaLevel": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "format": "int32",
        "type": "integer"
      },
      "SchemaReviewDto": {
        "additionalProperties": false,
        "properties": {
          "decision": {
            "$ref": "#/components/schemas/ReviewDecision"
          },
          "followupNotes": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "qualityScore": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "requestId": {
            "format": "uuid",
            "type": "string"
          },
          "requiresFollowup": {
            "type": "boolean"
          },
          "reviewNotes": {
            "nullable": true,
            "type": "string"
          },
          "reviewedAt": {
            "format": "date-time",
            "type": "string"
          },
          "reviewerId": {
            "format": "uuid",
            "type": "string"
          },
          "reviewerJurisdiction": {
            "nullable": true,
            "type": "string"
          },
          "reviewerRole": {
            "$ref": "#/components/schemas/GovernanceRole"
          },
          "securityScore": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SchemaRuleViolationDto": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "nullable": true,
            "type": "string"
          },
          "message": {
            "nullable": true,
            "type": "string"
          },
          "path": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "SecurityCheckResult": {
        "additionalProperties": false,
        "properties": {
          "checksJson": {
            "nullable": true,
            "type": "string"
          },
          "issues": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "passed": {
            "type": "boolean"
          },
          "qualityScore": {
            "format": "int32",
            "type": "integer"
          },
          "securityScore": {
            "format": "int32",
            "type": "integer"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "SubmitPublicationRequest": {
        "additionalProperties": false,
        "properties": {
          "expectedUsers": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "justification": {
            "nullable": true,
            "type": "string"
          },
          "requestedInvitationEnabled": {
            "type": "boolean"
          },
          "requestedJurisdictions": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "requestedMarketplaceListing": {
            "type": "boolean"
          },
          "requestedVisibility": {
            "$ref": "#/components/schemas/VisibilityType"
          },
          "schemaId": {
            "nullable": true,
            "type": "string"
          },
          "slaBusinessDays": {
            "format": "int32",
            "type": "integer"
          },
          "submittedBy": {
            "format": "uuid",
            "type": "string"
          },
          "useCaseDescription": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateSchemaRequest": {
        "additionalProperties": false,
        "properties": {
          "dataClassification": {
            "$ref": "#/components/schemas/DataClassification"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "jsonSchemaDefinition": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          },
          "retentionYears": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "sensitivityLevel": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "ValidateSchemaDefinitionRequest": {
        "additionalProperties": false,
        "properties": {
          "jsonSchemaDefinition": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "VisibilityType": {
        "enum": [
          0,
          1,
          2
        ],
        "format": "int32",
        "type": "integer"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "bearerFormat": "JWT",
        "description": "JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Schema publication, marketplace, and invitation management for the Essence Platform.\n\nAll endpoints require a Bearer token issued by the Essence Auth service (WS-C 1 foundation adoption).",
    "title": "Essence Schema Service API",
    "version": "v1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/api/v1/PublicationRequests": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitPublicationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitPublicationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitPublicationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/by-submitter/{submitterId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "submitterId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/overdue": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/pending": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicationRequestDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/security-checks": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityCheckResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityCheckResult"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityCheckResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/approve": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "approvedBy",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "notes",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/reject": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "rejectedBy",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/request-changes": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/reviews": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddReviewRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddReviewRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddReviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/start-review": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/PublicationRequests/{id}/withdraw": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRequestDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "PublicationRequests"
        ]
      }
    },
    "/api/v1/SchemaInvitations": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/accept/{token}": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "acceptedBy",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "documentId",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "vaultId",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/by-recipient-email": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "email",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/by-recipient-user/{userId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/by-schema/{schemaId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "schemaId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/by-sender/{senderId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "senderId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaInvitationDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/by-token/{token}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/mark-expired": {
      "post": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "format": "int32",
                  "type": "integer"
                }
              },
              "text/json": {
                "schema": {
                  "format": "int32",
                  "type": "integer"
                }
              },
              "text/plain": {
                "schema": {
                  "format": "int32",
                  "type": "integer"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/reject/{token}": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/{id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/{id}/mark-delivered": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "deliveryStatus",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/SchemaInvitations/{id}/revoke": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaInvitationDto"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "SchemaInvitations"
        ]
      }
    },
    "/api/v1/Schemas": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSchemaRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSchemaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSchemaRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/available": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "userId",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "userJurisdiction",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/by-jurisdiction/{jurisdictionCode}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "jurisdictionCode",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/by-level/{level}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "level",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SchemaLevel"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/by-module/{moduleId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "moduleId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/by-organization/{organizationId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "organizationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/by-schema-id/{schemaId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "schemaId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/marketplace/categories": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/marketplace/search": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceSearchRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceSearchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceSearchResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceSearchResult"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/marketplace/tags": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/published": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SchemaDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/validate-definition": {
      "post": {
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSchemaDefinitionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSchemaDefinitionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSchemaDefinitionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDefinitionValidationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDefinitionValidationDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDefinitionValidationDto"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/{id}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "Schemas"
        ]
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "Schemas"
        ]
      },
      "put": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSchemaRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSchemaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSchemaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/Schemas/{id}/archive": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "archivedBy",
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaDto"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "tags": [
          "Schemas"
        ]
      }
    },
    "/api/v1/schemas/catalogue-health": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogueHealthDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogueHealthDto"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogueHealthDto"
                }
              }
            },
            "description": "Success"
          }
        },
        "tags": [
          "CatalogueHealth"
        ]
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ]
}
