 module.exports =
-  resource:
+  spire_resource:
     type: "object"
     properties:
       url: {type: "string"}

      resources:
        type: "dictionary"
        additionalProperties:
          type: "resource"

  channel:
    type: "resource"
    media_type: "application/vnd.spire-io.channel+json;version=1.0"
    properties:
      name: {type: "string"}

    required: ["url"]

  account:
    type: "spire_resource"
    media_type: "application/vnd.spire-io.account+json;version=1.0"
    properties:
      id: {type: "string", readonly: true}
