{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elhub/json-schema/elhub-service-provider-product-application-comment-create-request-schema.json",
  "title": "service_provider_product_application_comment_create_request",
  "description": "Request schema for create operations - Comment made by a party involved in a service provider product application.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elhub-service-provider-product-application-comment-api-openapi.yml#/components/schemas/service_provider_product_application_comment_create_request",
  "summary": "Create - Service Provider Product Application Comment",
  "type": "object",
  "properties": {
    "service_provider_product_application_id": {
      "description": "Reference to the service provider product application.",
      "format": "bigint",
      "type": "integer"
    },
    "visibility": {
      "$ref": "#/$defs/service_provider_product_application_comment_visibility",
      "default": "same_party"
    },
    "content": {
      "description": "Free text content of the comment.",
      "format": "text",
      "type": "string",
      "maxLength": 2048
    }
  },
  "required": [
    "service_provider_product_application_id",
    "content"
  ],
  "$defs": {
    "service_provider_product_application_comment_visibility": {
      "description": "The level of visibility of the comment.",
      "format": "text",
      "type": "string",
      "default": "same_party",
      "enum": [
        "same_party",
        "any_involved_party"
      ]
    }
  }
}