OpenAPI Generator

OpenAPI Generator

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

Config Options for go-server

OptionDescriptionValuesDefault
packageNameGo package name (convention: lowercase).openapi
packageVersionGo package version.1.0.0
hideGenerationTimestampHides the generation timestamp when files are generated.true
sourceFoldersource folder for generated codego
serverPortThe network port the generated server binds to8080
featureCORSEnable Cross-Origin Resource Sharing middlewarefalse

IMPORT MAPPING

Type/AliasImports

INSTANTIATION TYPES

Type/AliasInstantiated By

LANGUAGE PRIMITIVES

  • string
  • bool
  • byte
  • float32
  • float64
  • uint
  • int
  • complex64
  • rune
  • int32
  • int64
  • complex128
  • uint64
  • uint32

RESERVED WORDS

  • struct
  • defer
  • select
  • string
  • bool
  • const
  • import
  • for
  • range
  • float64
  • interface
  • type
  • error
  • complex64
  • rune
  • switch
  • nil
  • default
  • goto
  • int64
  • else
  • continue
  • int8
  • uint32
  • uint16
  • map
  • if
  • case
  • package
  • break
  • byte
  • var
  • go
  • float32
  • uint
  • int
  • int16
  • func
  • int32
  • complex128
  • uint64
  • uint8
  • chan
  • fallthrough
  • uintptr
  • return
Last updated on 1/9/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))