{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-egress-field-suggestion-schema.json",
  "title": "EgressFieldSuggestion",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-egresstemplate-api-openapi.yml#/components/schemas/EgressFieldSuggestion",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "suggestedMatches": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EgressFieldCatalogItem"
      }
    }
  },
  "$defs": {
    "EgressFieldCatalogItem": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "entityGroup": {
          "type": "string"
        },
        "dataType": {
          "type": "string"
        },
        "isDate": {
          "type": "boolean"
        },
        "isExpandable": {
          "type": "boolean"
        },
        "isSensitive": {
          "type": "boolean"
        },
        "expansionKey": {
          "type": "string"
        },
        "isJoinable": {
          "type": "boolean"
        },
        "mappedEntity": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "hasPattern": {
          "type": "boolean"
        },
        "format": {
          "type": "string"
        },
        "message": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "minLength": {
          "type": "integer",
          "format": "int32"
        },
        "maxLength": {
          "type": "integer",
          "format": "int32"
        },
        "enum": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}