{"dataset_id":"us-building-permits","schema_version":1,"schema":{"type":"object","required":["city","state","permit_number","permit_category","issued_date","official_source","observed_at"],"properties":{"city":{"type":"string","maxLength":80,"description":"City whose portal published the permit"},"notes":{"type":["string","null"],"maxLength":1000,"description":"Caveats, exceptions or values that were not published"},"state":{"type":"string","pattern":"^[A-Z]{2}$","description":"US state code"},"status":{"type":["string","null"],"maxLength":60,"description":"Status as published"},"parcel_id":{"type":["string","null"],"maxLength":60,"description":"Parcel / BBL / APN as published"},"issued_date":{"type":"string","format":"date","description":"Issue date"},"observed_at":{"type":"string","format":"date-time","description":"When the values were observed"},"units_added":{"type":["integer","null"],"description":"Dwelling units added (negative if removed)"},"site_address":{"type":["string","null"],"maxLength":300,"description":"Site address of the property"},"permit_number":{"type":"string","maxLength":80,"description":"Permit number as published"},"valuation_usd":{"type":["number","null"],"minimum":0,"description":"Declared job valuation in USD"},"official_source":{"type":"string","format":"uri","description":"Official page the values come from"},"permit_category":{"enum":["new_construction","addition_alteration","demolition","electrical","plumbing","mechanical","solar","roofing","pool","sign","other"],"type":"string","description":"Normalised category (mapping documented per city in notes)"},"work_description":{"type":["string","null"],"maxLength":1000,"description":"Work description as published (truncate at 1000 chars)"},"contractor_license":{"type":["string","null"],"maxLength":60,"description":"Contractor licence number as published"},"contractor_business_name":{"type":["string","null"],"maxLength":200,"description":"Contractor business name (businesses only; no owner names)"},"permit_type_as_published":{"type":["string","null"],"maxLength":200,"description":"Type / class exactly as the city publishes it"}},"additionalProperties":false},"primary_key":["state","city","permit_number"],"field_descriptions":{"city":"City whose portal published the permit","notes":"Caveats, exceptions or values that were not published","state":"US state code","status":"Status as published","parcel_id":"Parcel / BBL / APN as published","issued_date":"Issue date","observed_at":"When the values were observed","units_added":"Dwelling units added (negative if removed)","site_address":"Site address of the property","permit_number":"Permit number as published","valuation_usd":"Declared job valuation in USD","official_source":"Official page the values come from","permit_category":"Normalised category (mapping documented per city in notes)","work_description":"Work description as published (truncate at 1000 chars)","contractor_license":"Contractor licence number as published","contractor_business_name":"Contractor business name (businesses only; no owner names)","permit_type_as_published":"Type / class exactly as the city publishes it"},"supported_query_operations":["eq","neq","in","gt","gte","lt","lte","between","contains","prefix","sort","fields","aggregate"]}