OpenAPI Generator

OpenAPI Generator

  • Get Started
  • Generators
  • Roadmap
  • Team
  • FAQ
  • Blog

Config Options for php-slim4

OptionDescriptionValuesDefault
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
apiPackagepackage for generated api classesnull
artifactVersionThe version to use in the composer package version field. e.g. 1.2.3null
ensureUniqueParamsWhether to ensure parameter names are unique in an operation (rename parameters that are not).true
invokerPackageThe main namespace to use for all classes. e.g. Yay\Petsnull
modelPackagepackage for generated modelsnull
packageNameThe main package name for classes. e.g. GeneratedPetstorenull
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false
psr7ImplementationSlim 4 provides its own PSR-7 implementation so that it works out of the box. However, you are free to replace Slim’s default PSR-7 objects with a third-party implementation. Ref: https://www.slimframework.com/docs/v4/concepts/value-objects.html
slim-psr7
Slim PSR-7 Message implementation
nyholm-psr7
Nyholm PSR-7 Message implementation
guzzle-psr7
Guzzle PSR-7 Message implementation
zend-diactoros
Zend Diactoros PSR-7 Message implementation
slim-psr7
sortModelPropertiesByRequiredFlagSort model properties to place required parameters before optional parameters.true
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
srcBasePathThe directory to serve as source root.null
variableNamingConventionnaming convention of variable name, e.g. camelCase.camelCase

IMPORT MAPPING

Type/AliasImports

INSTANTIATION TYPES

Type/AliasInstantiated By
arrayarray
mapmap

LANGUAGE PRIMITIVES

  • DateTime
  • bool
  • boolean
  • byte
  • double
  • float
  • int
  • integer
  • mixed
  • number
  • object
  • string
  • void

RESERVED WORDS

  • __halt_compiler
  • _header_accept
  • _tempbody
  • abstract
  • and
  • array
  • as
  • break
  • callable
  • case
  • catch
  • class
  • clone
  • const
  • continue
  • declare
  • default
  • die
  • do
  • echo
  • else
  • elseif
  • empty
  • enddeclare
  • endfor
  • endforeach
  • endif
  • endswitch
  • endwhile
  • eval
  • exit
  • extends
  • final
  • for
  • foreach
  • formparams
  • function
  • global
  • goto
  • headerparams
  • httpbody
  • if
  • implements
  • include
  • include_once
  • instanceof
  • insteadof
  • interface
  • isset
  • list
  • namespace
  • new
  • or
  • print
  • private
  • protected
  • public
  • queryparams
  • require
  • require_once
  • resourcepath
  • return
  • static
  • switch
  • throw
  • trait
  • try
  • unset
  • use
  • var
  • while
  • xor
Last updated on 1/20/2020
  • IMPORT MAPPING
  • INSTANTIATION TYPES
  • LANGUAGE PRIMITIVES
  • RESERVED WORDS
OpenAPI Generator
Docs
Customizing GeneratorsWorkflow Integrations
Community
User ShowcaseStack OverflowChat RoomTwitter
More
BlogGitHub RepoStar
Copyright © 2020 OpenAPI-Generator Contributors (https://openapi-generator.tech). (Both "OpenAPI Tools" (https://OpenAPITools.org) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI))