{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ivans/json-schema/ivans-classification-code-search-request-schema.json",
  "title": "ClassificationCodeSearchRequest",
  "description": "Returns a filtered list of classification codes.\n\nFilters:\n- ClassificationStandard\n- values to previously answered RPAs for NAICS, State, and ClassificationCode\n- search value used to match the code or description of the codes",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivans-classification-codes-api-openapi.yml#/components/schemas/ClassificationCodeSearchRequest",
  "type": "object",
  "properties": {
    "classificationStandard": {
      "type": "string",
      "format": "uuid"
    },
    "filterFieldValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FieldValuesRequest"
      }
    },
    "search": {
      "type": "string"
    }
  },
  "required": [
    "classificationStandard",
    "filterFieldValues"
  ],
  "$defs": {
    "FieldValuesRequest": {
      "type": "object",
      "properties": {
        "questionId": {
          "type": "string",
          "minLength": 1
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "questionId",
        "value"
      ]
    }
  }
}