{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/retool/json-schema/retool-app-schema.json",
  "title": "Retool App",
  "description": "A Retool application built in the visual editor, connecting to databases and APIs.",
  "type": "object",
  "required": ["id", "name"],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the app."
    },
    "name": {
      "type": "string",
      "description": "The name of the application."
    },
    "description": {
      "type": "string",
      "description": "A description of the application's purpose."
    },
    "folderId": {
      "type": "string",
      "description": "The identifier of the folder containing this app."
    },
    "createdBy": {
      "type": "string",
      "description": "The email of the user who created the app."
    },
    "resources": {
      "type": "array",
      "description": "Resource identifiers used by this app.",
      "items": { "type": "string" }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the app was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the app was last updated."
    }
  }
}
