{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/speakeasy-generation-config-file/_shared/latest--php.schema.json",
  "title": "php Configuration Schema",
  "description": "Schema for configuration specific to a php SDK",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/speakeasy-api/sdk-gen-config/main/schemas/languages/php.schema.json",
    "sourceSha256": "6f47c38caf158900fe126c8e1fedb3b45e97ee3af237c76de61fef9668e30932"
  },
  "type": "object",
  "properties": {
    "clientServerStatusCodesAsErrors": {
      "description": "Whether to treat 4xx and 5xx status codes as errors.",
      "type": "boolean"
    },
    "defaultErrorName": {
      "description": "The name of the default exception that is thrown when an API error occurs.",
      "pattern": "^[A-Z][a-zA-Z0-9]*$",
      "type": "string"
    },
    "envVarPrefix": {
      "description": "The environment variable prefix for laravel service provider env variable overrides. If empty these overrides will not be prefixed"
    },
    "flattenGlobalSecurity": {
      "description": "Flatten the global security configuration if there is only a single option in the spec",
      "type": "boolean"
    },
    "inputModelSuffix": {
      "description": "The suffix to add to models with writeOnly fields that are created as input models",
      "pattern": "^[\\w0-9.\\-_]+$",
      "type": "string"
    },
    "maxMethodParams": {
      "description": "The maximum number of parameters a method can have before the resulting SDK endpoint is no longer 'flattened' and an input object is created instead. 0 will use input objects always. <https://www.speakeasy.com/docs/customize-sdks/methods>",
      "pattern": "^\\d+$",
      "type": "number"
    },
    "methodArguments": {
      "description": "Determines how arguments for SDK methods are generated.  PHP only supports `infer-optional-args` - this configuration option is only here for consistency.",
      "pattern": "^infer-optional-args$",
      "type": "string"
    },
    "namespace": {
      "description": "<https://www.php.net/manual/en/language.namespaces.rationale.php>",
      "pattern": "^([a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*\\\\)*[a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*$",
      "type": "string"
    },
    "outputModelSuffix": {
      "description": "The suffix to add to models with writeOnly fields that are created as input models",
      "pattern": "^[\\w0-9.\\-_]+$",
      "type": "string"
    },
    "packageName": {
      "description": "The name of the composer package. <https://getcomposer.org/doc/04-schema.md#name>",
      "pattern": "^[a-z0-9]([_.-]?[a-z0-9]+)*\\/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*",
      "type": "string"
    },
    "version": {
      "description": "The current version of the SDK",
      "pattern": "^[\\w0-9.\\-_]+$",
      "type": "string"
    }
  },
  "required": [
    "version",
    "namespace",
    "packageName"
  ],
  "additionalProperties": true
}
