{
  "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",
          "required": [
            "thing"
          ],
          "properties": {
            "models": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "space.polymodel.library.defs#modelView"
              }
            },
            "thing": {
              "type": "ref",
              "ref": "space.polymodel.library.defs#thingView"
            }
          }
        }
      }
    }
  }
}