{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schoolchoicecompass-com/json-schema/schoolchoicecompass-com-federal-credit-schema.json",
  "title": "FederalCredit",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schoolchoicecompass-com-openapi.yml#/components/schemas/FederalCredit",
  "type": "object",
  "required": [
    "about",
    "rules",
    "participating"
  ],
  "properties": {
    "about": {
      "$ref": "#/$defs/About"
    },
    "law": {
      "type": "string"
    },
    "checked": {
      "type": "string",
      "format": "date"
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "text",
          "source"
        ],
        "properties": {
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "checked": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "participating": {
      "type": "object",
      "required": [
        "as_of",
        "source",
        "count",
        "jurisdictions"
      ],
      "properties": {
        "as_of": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "format": "uri"
        },
        "source_updated": {
          "type": "string"
        },
        "count": {
          "type": "integer",
          "minimum": 0
        },
        "jurisdictions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "page": {
                "oneOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_programs_file": {
                "oneOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checked": {
                "type": "string",
                "format": "date"
              }
            }
          }
        }
      }
    },
    "timeline": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  },
  "$defs": {
    "About": {
      "type": "object",
      "required": [
        "dataset",
        "format_version",
        "file",
        "updated",
        "use"
      ],
      "properties": {
        "dataset": {
          "type": "string"
        },
        "format_version": {
          "type": "string"
        },
        "file": {
          "type": "string",
          "format": "uri"
        },
        "html": {
          "type": "string",
          "format": "uri"
        },
        "updated": {
          "type": "string",
          "format": "date"
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        },
        "use": {
          "type": "object",
          "required": [
            "attribution",
            "licence"
          ],
          "properties": {
            "attribution": {
              "type": "string"
            },
            "licence": {
              "type": "object",
              "properties": {
                "compilation": {
                  "type": "string"
                },
                "compilation_url": {
                  "type": "string",
                  "format": "uri"
                },
                "facts": {
                  "type": "string"
                }
              }
            },
            "terms": {
              "type": "string",
              "format": "uri"
            },
            "sources": {
              "type": "string",
              "format": "uri"
            },
            "not_advice": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}