{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apiacre-com/json-schema/apiacre-com-recommendation-request-schema.json",
  "title": "RecommendationRequest",
  "description": "Free selector input; aliases keep the JSON contract idiomatic for agents.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apiacre-com-discovery-api-openapi.yml#/components/schemas/RecommendationRequest",
  "properties": {
    "task": {
      "type": "string",
      "maxLength": 500,
      "minLength": 3,
      "title": "Task"
    },
    "maxPrice": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,3}0*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Maxprice"
    },
    "maxTotalPrice": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,3}0*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Maxtotalprice"
    },
    "limit": {
      "type": "integer",
      "maximum": 10.0,
      "minimum": 1.0,
      "title": "Limit",
      "default": 5
    },
    "detail": {
      "type": "string",
      "enum": [
        "compact",
        "full"
      ],
      "title": "Detail",
      "default": "compact"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "task"
  ]
}