{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pennsylvania-state-university/json-schema/pennsylvania-state-university-publication-v1-schema.json",
  "title": "PublicationV1",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pennsylvania-state-university-organization-api-openapi.yml#/components/schemas/PublicationV1",
  "type": "object",
  "required": [
    "id",
    "type",
    "attributes"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the object"
    },
    "type": {
      "type": "string",
      "description": "The type of the object"
    },
    "attributes": {
      "type": "object",
      "required": [
        "title",
        "publication_type",
        "contributors",
        "tags",
        "pure_ids",
        "activity_insight_ids"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the publication"
        },
        "secondary_title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The sub-title of the publication"
        },
        "journal_title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The title of the journal in which the publication was published"
        },
        "publication_type": {
          "type": "string",
          "description": "The type of the publication"
        },
        "publisher": {
          "type": [
            "string",
            "null"
          ],
          "description": "The publisher of the publication"
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "The status of the publication"
        },
        "volume": {
          "type": [
            "string",
            "null"
          ],
          "description": "The volume of the journal in which the publication was published"
        },
        "issue": {
          "type": [
            "string",
            "null"
          ],
          "description": "The issue of the journal in which the publication was published"
        },
        "edition": {
          "type": [
            "string",
            "null"
          ],
          "description": "The edition of the journal in which the publication was published"
        },
        "page_range": {
          "type": [
            "string",
            "null"
          ],
          "description": "The range of page numbers on which the publication content appears in the journal"
        },
        "authors_et_al": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether or not the publication has additional, unlisted authors"
        },
        "abstract": {
          "type": [
            "string",
            "null"
          ],
          "description": "A brief summary of the content of the publication"
        },
        "doi": {
          "type": [
            "string",
            "null"
          ],
          "description": "The Digital Object Identifier URL for the publication"
        },
        "preferred_open_access_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "A URL for an open access copy of the publication"
        },
        "published_on": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date on which the publication was published"
        },
        "citation_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The number of times that the publication has been cited in other works"
        },
        "supplementary_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "A URL for supplementary information or a secondary location of the publication"
        },
        "contributors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The first name of a person who contributed to the publication"
              },
              "middle_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The middle name of a person who contributed to the publication"
              },
              "last_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The last name of a person who contributed to the publication"
              },
              "psu_user_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The Penn State user ID of a person who contributed to the publication if they have one"
              }
            }
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The name of a tag"
              },
              "rank": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The ranking of the tag"
              }
            }
          }
        },
        "pure_ids": {
          "type": "array",
          "description": "Unique identifiers for corresponding records in the Pure database that represent the publication",
          "items": {
            "type": "string"
          }
        },
        "activity_insight_ids": {
          "type": "array",
          "description": "Unique identifiers for corresponding records in the Activity Insight database that represent the publication",
          "items": {
            "type": "string"
          }
        },
        "profile_preferences": {
          "type": "array",
          "description": "An array of settings for each user who is an author of the publication indicating how they prefer to have the publication displayed in a profile",
          "items": {
            "type": "object",
            "required": [
              "user_id",
              "webaccess_id",
              "visible_in_profile",
              "position_in_profile"
            ],
            "properties": {
              "user_id": {
                "type": "number",
                "description": "The ID of the user to which this set of preferences belongs"
              },
              "webaccess_id": {
                "type": "string",
                "description": "The WebAccess ID of the user to which this set of preferences belongs"
              },
              "visible_in_profile": {
                "type": "boolean",
                "description": "The user's preference for whether or not this publication should be displayed in their profile"
              },
              "position_in_profile": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The user's preference for what position this publication should occupy in a list of their publications in their profile"
              }
            }
          }
        }
      }
    }
  }
}