{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "L3 FHIR Authoring Output",
  "description": "Output schema for L3 FHIR IG authoring.",
  "type": "object",
  "required": [
    "fshFiles",
    "sushiResult"
  ],
  "properties": {
    "fshFiles": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "resourceType"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "resourceType": {
            "type": "string"
          },
          "resourceId": {
            "type": "string"
          }
        }
      }
    },
    "sushiResult": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "success",
            "warnings",
            "errors"
          ]
        },
        "resourceCount": {
          "type": "integer"
        },
        "errorCount": {
          "type": "integer"
        },
        "warningCount": {
          "type": "integer"
        }
      }
    },
    "generatedResources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "resourceType": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  },
  "$id": "https://litlfred.github.io/folio-assistant/fhir-harness/schema/skills/l3-fhir-authoring/output.schema.json"
}
