{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payapi-market/json-schema/payapi-market-submit-listing-response-schema.json",
  "title": "SubmitListingResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payapi-market-openapi.json#/components/schemas/SubmitListingResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "listing_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "field": {
      "type": "string"
    },
    "code": {
      "type": "string"
    },
    "hint": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubmitListingResult"
      }
    }
  },
  "required": [
    "ok"
  ],
  "$defs": {
    "SubmitListingResult": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "listed",
            "pending",
            "rejected"
          ]
        },
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "hint": {
          "type": "string"
        },
        "field": {
          "type": "string"
        },
        "listing_id": {
          "type": "string"
        },
        "warning": {
          "type": "string",
          "description": "Set when a no-input GET was accepted with an empty example."
        }
      },
      "required": [
        "url",
        "status"
      ]
    }
  }
}