{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://itsnorthcarolina.com/data/schema/nc-dog-rules-by-park.json",
    "title": "North Carolina State Park Dog Rules by Park (Computed)",
    "description": "Computed from the pet rule each North Carolina state park page states: whether dogs are allowed, whether campsites, buildings and swim areas are named, the leash length and any other limit. Where the park page does not say, the value is Not stated and the park page decides. Computed dataset; inputs: nc-places (the dog_rule text of each state park page on ncparks.gov).",
    "type": "object",
    "properties": {
        "name": {
            "description": "Official unit name",
            "type": "string"
        },
        "type": {
            "description": "State Park, State Recreation Area, State Natural Area, Nature Preserve or State Park Unit",
            "type": "string"
        },
        "city": {
            "description": "City or town of the park address",
            "type": "string"
        },
        "county": {
            "description": "County (or counties) from the park page",
            "type": "string"
        },
        "region": {
            "description": "Our editorial region (not an official designation)",
            "type": "string"
        },
        "dogs_allowed": {
            "description": "Computed: Yes when the park page says pets are allowed at the park, Not published when it has no pet rule",
            "type": "string"
        },
        "campsites": {
            "description": "Computed: Allowed when the rule says pets are allowed at campsites, otherwise Not stated",
            "type": "string"
        },
        "buildings": {
            "description": "Computed: Not allowed when the rule bars pets from buildings, otherwise Not stated",
            "type": "string"
        },
        "swim_areas": {
            "description": "Computed: Not allowed when the rule bars pets from a swim beach or swimming area, otherwise Not stated",
            "type": "string"
        },
        "leash_max_feet": {
            "description": "Longest leash in feet the rule allows (a number), blank when none is stated",
            "type": [
                "number",
                "null"
            ]
        },
        "other_limits": {
            "description": "Other limits the rule names: ferry, elevator, fort, camper cabins, steep trails",
            "type": [
                "string",
                "null"
            ]
        },
        "rule_text": {
            "description": "The pet rule as the park page states it, or Not published",
            "type": "string"
        },
        "official_url": {
            "description": "Park page on ncparks.gov the rule was read from",
            "type": "string",
            "format": "uri"
        },
        "page_url": {
            "description": "Our page for the park",
            "type": "string",
            "format": "uri"
        },
        "checked": {
            "description": "Date (YYYY-MM-DD) the source row was read",
            "type": "string",
            "format": "date"
        }
    },
    "required": [
        "name",
        "type",
        "city",
        "county",
        "region",
        "dogs_allowed",
        "campsites",
        "buildings",
        "swim_areas",
        "rule_text",
        "official_url",
        "page_url",
        "checked"
    ],
    "additionalProperties": false,
    "x-dataset": "https://itsnorthcarolina.com/data/nc-dog-rules-by-park/",
    "x-row-type": "One object per row in the \"rows\" array of https://itsnorthcarolina.com/data/downloads/nc-dog-rules-by-park.json",
    "x-license": "https://creativecommons.org/licenses/by/4.0/",
    "x-derived": true
}