{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/scott-foresman/refs/heads/main/json-schema/scott-foresman-educational-content-schema.json",
  "title": "Scott Foresman Educational Content",
  "description": "Schema for K-12 educational content items from Scott Foresman / Savvas Learning Company, covering textbooks, reading series, curriculum materials, and digital learning resources.",
  "type": "object",
  "required": ["id", "title", "gradeLevel", "subjectArea", "publisher"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the educational content item (ISBN or internal ID)"
    },
    "title": {
      "type": "string",
      "description": "Full title of the educational content or textbook"
    },
    "series": {
      "type": "string",
      "description": "The textbook series name (e.g., 'Reading Street', 'enVision Math', 'Scott Foresman Science')"
    },
    "gradeLevel": {
      "type": "string",
      "enum": ["PreK", "K", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
      "description": "Target grade level of the content"
    },
    "subjectArea": {
      "type": "string",
      "enum": ["Reading", "Language Arts", "Mathematics", "Science", "Social Studies", "Health", "Art", "Music"],
      "description": "Academic subject area"
    },
    "publisher": {
      "type": "string",
      "description": "Publisher name (Scott Foresman, Pearson, or Savvas Learning Company)"
    },
    "publicationYear": {
      "type": "integer",
      "minimum": 1896,
      "description": "Year the content was published"
    },
    "isbn": {
      "type": "string",
      "pattern": "^(97[89]-?)?[0-9]{9}[0-9X]$",
      "description": "ISBN-10 or ISBN-13 identifier"
    },
    "edition": {
      "type": "string",
      "description": "Edition of the textbook (e.g., '1st Edition', '2024 Edition')"
    },
    "contentType": {
      "type": "string",
      "enum": ["Student Edition", "Teacher Edition", "Practice Book", "Workbook", "Assessment", "Digital Platform", "Manipulatives"],
      "description": "Type of educational content or component"
    },
    "curriculumStandards": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Educational standards aligned with this content (e.g., 'Common Core State Standards', 'NGSS', 'TEKS')"
    },
    "digitalPlatform": {
      "type": "string",
      "description": "Digital delivery platform (e.g., 'Savvas Realize', 'SuccessNet Plus')"
    },
    "components": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Component name"
          },
          "type": {
            "type": "string",
            "description": "Component type (print, digital, audio, video)"
          }
        }
      },
      "description": "Individual components that make up the educational program"
    }
  }
}
