{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fusio/main/json-schema/fusio-marketplace-app-schema.json",
  "title": "MarketplaceApp",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fusio-marketplace-api-openapi.yml#/components/schemas/MarketplaceApp",
  "allOf": [
    {
      "$ref": "#/$defs/MarketplaceObject"
    },
    {
      "type": "object",
      "properties": {
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "downloadUrl": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "MarketplaceObject": {
      "description": "Base class of all objects on the marketplace",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "author": {
          "$ref": "#/$defs/MarketplaceUser"
        },
        "version": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "cost": {
          "type": "integer"
        },
        "updateDate": {
          "type": "string",
          "format": "date-time"
        },
        "insertDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "MarketplaceUser": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        }
      }
    }
  }
}