{
  "lexicon": 1,
  "id": "space.polymodel.library.getThing",
  "defs": {
    "main": {
      "type": "query",
      "description": "Hydrate one thing (with its models).",
      "parameters": {
        "type": "params",
        "required": ["uri"],
        "properties": {
          "uri": { "type": "string", "format": "at-uri" }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "thing": { "type": "ref", "ref": "space.polymodel.library.defs#thingView" },
            "models": { "type": "array", "items": { "type": "ref", "ref": "space.polymodel.library.defs#modelView" } }
          },
          "required": ["thing"]
        }
      }
    }
  }
}
