OpenAPI Generator

OpenAPI Generator

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

Config Options for dart-dio

OptionDescriptionValuesDefault
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
browserClientIs the client browser based (for Dart 1.x only)null
dateLibraryOption. Date library to use
core
Dart core library (DateTime)
timemachine
Time Machine is date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.
core
ensureUniqueParamsWhether to ensure parameter names are unique in an operation (rename parameters that are not).true
nullableFieldsIs the null fields should be in the JSON payloadnull
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false
pubAuthorAuthor name in generated pubspecnull
pubAuthorEmailEmail address of the author in generated pubspecnull
pubDescriptionDescription in generated pubspecnull
pubHomepageHomepage in generated pubspecnull
pubNameName in generated pubspecnull
pubVersionVersion in generated pubspecnull
sortModelPropertiesByRequiredFlagSort model properties to place required parameters before optional parameters.true
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
sourceFolderSource folder for generated codenull
supportDart2Support Dart 2.x (Dart 1.x support has been deprecated)true
useEnumExtensionAllow the 'x-enum-values' extension for enumsnull

IMPORT MAPPING

Type/AliasImports
BuiltListpackage:built_collection/built_collection.dart
BuiltMappackage:built_collection/built_collection.dart
JsonObjectpackage:built_value/json_object.dart
Uint8Listdart:typed_data

INSTANTIATION TYPES

Type/AliasInstantiated By
arrayList
mapMap

LANGUAGE PRIMITIVES

  • String
  • bool
  • double
  • int
  • num

RESERVED WORDS

  • abstract
  • as
  • assert
  • async
  • await
  • break
  • case
  • catch
  • class
  • const
  • continue
  • covariant
  • default
  • deferred
  • do
  • dynamic
  • else
  • enum
  • export
  • extends
  • extension
  • external
  • factory
  • false
  • final
  • finally
  • for
  • function
  • get
  • hide
  • if
  • implements
  • import
  • in
  • inout
  • interface
  • is
  • late
  • library
  • mixin
  • native
  • new
  • null
  • of
  • on
  • operator
  • out
  • part
  • patch
  • required
  • rethrow
  • return
  • set
  • show
  • source
  • static
  • super
  • switch
  • sync
  • this
  • throw
  • true
  • try
  • typedef
  • var
  • void
  • while
  • with
  • yield
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))