{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-assignment-check-response-dto-schema.json",
  "title": "assignmentCheckResponseDto",
  "description": "MARC authority assignment check response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-authority-api-openapi.yml#/components/schemas/assignmentCheckResponseDto",
  "type": "object",
  "properties": {
    "validAssignment": {
      "type": "boolean",
      "description": "Indicates if the assignment is valid"
    },
    "invalidAssignmentReason": {
      "type": "string",
      "enum": [
        "UNSUPPORTED_MARC",
        "NOT_VALID_FOR_TARGET"
      ],
      "description": "Indicates the reason why the assignment is not valid. Only present if 'validAssignment' is false."
    }
  },
  "required": [
    "validAssignment"
  ]
}