{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-entry-schema.json",
  "title": "Entry",
  "description": "Single application, including the applicant, form field responses, attachments, contributors, and status.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-applications-api-openapi.yml#/components/schemas/Entry",
  "allOf": [
    {
      "$ref": "#/$defs/EntrySummary"
    },
    {
      "$ref": "#/$defs/EntryDetail"
    }
  ],
  "$defs": {
    "EntryDetail": {
      "type": "object",
      "description": "Detailed application collections returned only for a single application.",
      "properties": {
        "application_fields": {
          "type": "array",
          "description": "Form field responses captured on the application.",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "description": "URL-safe identifier of the field."
              },
              "link": {
                "type": "string",
                "format": "uri",
                "description": "URL of the field resource."
              },
              "label": {
                "type": "object",
                "description": "Label of the field, as an HTML fragment, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "title": {
                "type": "object",
                "description": "Plain-text title of the field, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "value": {
                "description": "Value submitted for the field, or `null` when none is recorded."
              },
              "token": {
                "type": "string",
                "description": "File token for the uploaded file, present on file fields."
              },
              "dynamicRows": {
                "type": "array",
                "description": "Rows captured for a table field.",
                "items": {}
              },
              "values": {
                "type": "object",
                "description": "Cell values for a table field, keyed by cell reference. Cells in a row-label column carry the heading configured for that row.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "schema": {
                "type": "object",
                "description": "Column structure of a table field.",
                "properties": {
                  "columns": {
                    "type": "array",
                    "description": "Columns of the table, in the order they appear.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "Spreadsheet-style column letter used to address cells in `values`."
                        },
                        "label": {
                          "type": "object",
                          "description": "Heading of the column, keyed by locale code.",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "translated": {
                "type": "object",
                "description": "Translated value submitted for the field, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "download": {
                "type": "string",
                "format": "uri",
                "description": "Temporary download URL for the uploaded file, present on file fields."
              }
            }
          }
        },
        "attachments": {
          "type": "array",
          "description": "Files attached to the application.",
          "items": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string",
                "description": "URL-safe identifier of the attachment."
              },
              "link": {
                "type": "string",
                "format": "uri",
                "description": "URL of the attachment resource."
              },
              "file": {
                "type": "object",
                "description": "File stored for the attachment.",
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "URL-safe identifier of the file."
                  },
                  "link": {
                    "type": "string",
                    "format": "uri",
                    "description": "URL of the file resource."
                  },
                  "filename": {
                    "type": "string",
                    "description": "Original name of the uploaded file."
                  },
                  "download": {
                    "type": "string",
                    "format": "uri",
                    "description": "Temporary download URL for the file."
                  }
                }
              },
              "attachment_fields": {
                "type": "array",
                "description": "Field responses captured against the attachment.",
                "items": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string",
                      "description": "URL-safe identifier of the field."
                    },
                    "link": {
                      "type": "string",
                      "format": "uri",
                      "description": "URL of the field resource."
                    },
                    "label": {
                      "type": "object",
                      "description": "Label of the field, as an HTML fragment, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "title": {
                      "type": "object",
                      "description": "Plain-text title of the field, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "value": {
                      "type": "string",
                      "description": "Value submitted for the field."
                    },
                    "translated": {
                      "type": "object",
                      "description": "Translated value submitted for the field, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "tab": {
                "type": "object",
                "description": "Form tab the attachment belongs to.",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "URL-safe identifier of the tab."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the tab."
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date and time when the tab was created."
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date and time when the tab was last updated."
                  }
                }
              }
            }
          }
        },
        "contributors": {
          "type": "array",
          "description": "Contributors linked to the application.",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "description": "URL-safe identifier of the contributor."
              },
              "tab": {
                "type": "object",
                "description": "Form tab the contributor belongs to.",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "URL-safe identifier of the tab."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the tab."
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date and time when the tab was created."
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date and time when the tab was last updated."
                  }
                }
              },
              "contributor_fields": {
                "type": "array",
                "description": "Field responses captured against the contributor.",
                "items": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string",
                      "description": "URL-safe identifier of the field."
                    },
                    "link": {
                      "type": "string",
                      "format": "uri",
                      "description": "URL of the field resource."
                    },
                    "label": {
                      "type": "object",
                      "description": "Label of the field, as an HTML fragment, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "title": {
                      "type": "object",
                      "description": "Plain-text title of the field, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "value": {
                      "type": "string",
                      "description": "Value submitted for the field."
                    },
                    "translated": {
                      "type": "object",
                      "description": "Translated value submitted for the field, keyed by locale code.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "EntrySummary": {
      "type": "object",
      "description": "Core application fields shared by the list and single-application responses.",
      "properties": {
        "applicant": {
          "type": "object",
          "description": "Applicant who created and owns the application.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the applicant."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the applicant resource."
            },
            "name": {
              "type": "string",
              "description": "Full name of the applicant."
            },
            "first_name": {
              "type": "string",
              "description": "First name of the applicant."
            },
            "last_name": {
              "type": "string",
              "description": "Last name of the applicant."
            },
            "email": {
              "type": "string",
              "format": "email",
              "description": "Email address of the applicant."
            },
            "global_id": {
              "type": "string",
              "description": "Globally unique identifier of the applicant."
            }
          }
        },
        "auto_score": {
          "type": "integer",
          "description": "Automated score calculated for the application."
        },
        "category": {
          "type": "object",
          "description": "Category the application is assigned to.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the category."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the category resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the category, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "chapter": {
          "type": "object",
          "description": "Chapter the entry is assigned to.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the chapter."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the chapter resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the chapter, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "comments": {
          "type": "string",
          "description": "Manager comments recorded on the entry, joined into a single string."
        },
        "contributor_count": {
          "type": "integer",
          "description": "Number of contributors linked to the application."
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the entry was created."
        },
        "custom_deadline": {
          "type": "string",
          "description": "Custom submission deadline for the entry, or `-` when none is set."
        },
        "division": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Division number assigned to the entry, or `null` when none is assigned."
        },
        "eligibility_status": {
          "type": "string",
          "description": "Eligibility status of the application."
        },
        "files_count": {
          "type": "integer",
          "description": "Number of files uploaded to the application."
        },
        "form": {
          "type": "object",
          "description": "Entry form used to capture the application.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the form."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the form resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the form, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "grant_start_date": {
          "type": [
            "string",
            "null"
          ],
          "description": "Date when the grant starts, or `null` when not applicable, shown only when the grants feature is enabled."
        },
        "grant_end_date": {
          "type": [
            "string",
            "null"
          ],
          "description": "Date when the grant ends, or `null` when not applicable, shown only when the grants feature is enabled."
        },
        "grant_status": {
          "type": [
            "object",
            "null"
          ],
          "description": "Grant status assigned to the entry, or `null` when none is set, shown only when the grants feature is enabled.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the grant status."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the grant status resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the grant status, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "local_id": {
          "type": "integer",
          "description": "Sequential identifier of the entry within the account."
        },
        "moderation_status": {
          "type": "string",
          "description": "Moderation status of the application."
        },
        "parent_category": {
          "type": [
            "object",
            "null"
          ],
          "description": "Parent of the assigned category, or `null` when the category has no parent.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the parent category."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the parent category resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the parent category, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "payment_status": {
          "type": "string",
          "description": "Payment status of the application."
        },
        "plagiarism_scan_status": {
          "type": "string",
          "description": "Plagiarism scan status of the application."
        },
        "review_status": {
          "type": "string",
          "description": "Review status of the application."
        },
        "season": {
          "type": "object",
          "description": "Season the entry belongs to.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "URL-safe identifier of the season."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "URL of the season resource."
            },
            "name": {
              "type": "object",
              "description": "Name of the season, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "slug": {
          "type": "string",
          "description": "URL-safe identifier of the application."
        },
        "status": {
          "type": "string",
          "description": "Submission status of the application, for example `submitted`, `in_progress`, `resubmission_required`, `resubmitted`, `invited`, or `not_approved_for_submission`."
        },
        "submitted": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Date and time when the entry was submitted, or `null` when not yet submitted."
        },
        "tags": {
          "type": "string",
          "description": "Tags applied to the entry, as a comma-separated list."
        },
        "title": {
          "type": "string",
          "description": "Title of the application."
        },
        "updated": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the entry was last updated."
        },
        "user_comments": {
          "type": "string",
          "description": "Comments left by users on the entry, joined into a single string."
        }
      }
    }
  }
}