{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Create Resource",
  "description": "Import a new resource with a name and optional payload conforming to the resource type's schema.",
  "type": "object",
  "required": ["name"],
  "properties": {
    "name": {
      "type": "string",
      "title": "Resource Name",
      "description": "A human-readable name for this resource",
      "minLength": 1,
      "examples": ["Production AWS Credentials", "Staging VPC"]
    },
    "payload": {
      "type": "object",
      "title": "Payload",
      "description": "Resource data conforming to the resource type's schema. Structure varies by type.",
      "x-gql-type": "map"
    }
  }
}
