79ecb5bacd78957d…

Created Nov 14, 20267 fields1 collection using this schema

Labels

No labels yet.

Fields

NameTypeInfo
actionstring
gradestring
gradeDatestring
inspectionDatestring
inspectionTypestring
restaurantIdstring
→ Restaurant
scoreinteger

JSON Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "description": "One inspection of one restaurant: a CAMIS, an inspection date and an inspection type. Same key and fields as nyc/restaurant-inspections v1.0.0.",
  "properties": {
    "action": {
      "description": "Action taken",
      "type": "string"
    },
    "grade": {
      "description": "Letter grade; empty when the city gives none",
      "type": "string"
    },
    "gradeDate": {
      "description": "Grade date; empty when none",
      "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
      "type": "string"
    },
    "inspectionDate": {
      "description": "Inspection date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    },
    "inspectionType": {
      "description": "Inspection type as the city gives it",
      "type": "string"
    },
    "restaurantId": {
      "description": "CAMIS of the restaurant",
      "type": "string",
      "x-ref-type": "Restaurant"
    },
    "score": {
      "description": "Score (lower is better); absent when the city gives none",
      "type": "integer"
    }
  },
  "required": [
    "restaurantId",
    "inspectionDate",
    "inspectionType",
    "action",
    "grade",
    "gradeDate"
  ],
  "title": "Inspection",
  "type": "object"
}

Used by 1 collection

Full hash:79ecb5bacd78957d9dedb8a9b01d3d79518004c471e9cf43cc9135e92e16090a

ID:79ecb5bacd78957d9dedb8a9b01d3d79518004c471e9cf43cc9135e92e16090a