Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Modifier for all generated declarations
- access: public
- # Add @available(*, deprecated) attributed
- isAddingDeprecations: true
- # Generate enums for strings
- isGeneratingEnums: true
- # Example: "enabled" -> "isEnabled"
- isGeneratingSwiftyBooleanPropertyNames: true
- # Any schema that can be conveted to a type identifier.
- # Example: "typealias Pets = [Pet], is inlined as "[Pet]".
- isInliningTypealiases: true
- # Example: "var sourcelUrl" becomes "var sourceURL"
- isReplacingCommonAcronyms: true
- # Acronyms to add to the default list
- addedAcronyms: []
- # Acronyms to remove from the default list
- ignoredAcronyms: []
- # Example: "var file: [File]" becomes "var files: [File]"
- isPluralizationEnabled: true
- # Available values: ["spaces", "tabs"]
- indentation: spaces
- # By default, 4
- spaceWidth: 4
- # Parses dates (e.g. "2021-09-29") using `NaiveDate` (https://github.com/CreateAPI/NaiveDate)
- isNaiveDateEnabled: true
- # If enabled, uses `Int64` or `Int32` when specified.
- isUsingIntegersWithPredefinedCapacity: false
- # Disableds SwiftLint
- isSwiftLintDisabled: true
- # Overrides file header comment
- fileHeaderComment: "// Generated by Create API\n// https://github.com/CreateAPI/CreateAPI"
- entities:
- # Excluded entities, e.g. ["SimpleUser"]
- # `exclude` and `include` can't be used together
- exclude: []
- # Included entities, e.g. ["SimpleUser"]
- include: []
- # Generates entities as structs
- isGeneratingStructs: true
- # Generate the following entities as classes
- entitiesGeneratedAsClasses: []
- # Generate the following entities as structs
- entitiesGeneratedAsStructs: []
- # Makes classes final
- isMakingClassesFinal: true
- # Base class for entities generated as classes
- baseClass: null
- # Protocols adopted by entities
- protocols: ["Codable"]
- # Generate initializers for all entities
- isGeneratingInitializers: true
- # If disabled, will use let properties in struct entities
- isGeneratingMutableStructProperties: false
- # If disabled, will use let properties in class entities
- isGeneratingMutableClassProperties: false
- # If disabled, will use strings as coding keys
- isGeneratingCustomCodingKeys: true
- # By default, the order matches the order in the spec
- isSortingPropertiesAlphabetically: false
- # Add defaults values for booleans and other types when specified
- isAddingDefaultValues: true
- # For `allOf` inline properties from references
- isInliningPropertiesFromReferencedSchemas: false
- # Changes how unspecified additional properties are interpreted
- isAdditionalPropertiesOnByDefault: true
- # Strips the parent name of enum cases within objects that are `oneOf` / `allOf` / `anyOf` of nested references
- isStrippingParentNameInNestedObjects: false
- # The types to import in the entities, by default empty
- imports: ["CoreLocation"]
- paths:
- # Excluded paths, e.g. ["/gists/{gist_id}/commits"]
- # `exclude` and `include` can't be used together
- exclude: []
- # Included paths, e.g. ["/gists/{gist_id}/commits"]
- include: []
- # Available options:
- # - "rest" - generate structs to represent path components
- # - "operations" - generate a plain list of operatinos
- style: operations
- # Namespace for all generated paths
- namespace: "Paths"
- # Generate response headers using https://github.com/CreateAPI/HTTPHeaders
- isGeneratingResponseHeaders: true
- # Add operation id to each request
- isAddingOperationIds: false
- # The types to import, by default uses "Get" (https://github.com/kean/Get)
- imports: ["Get"]
- # Example, "- empty: Void"
- overrideResponses: {}
- # Inline simple requests, like the ones with a single parameter
- isInliningSimpleRequests: true
- # Inline simple parametesr with few arguments.
- isInliningSimpleQueryParameters: true
- # Threshold from which to start inlining query parameters
- simpleQueryParametersThreshold: 999
- # Tries to remove redundant paths
- isRemovingRedundantPaths: true
- rename:
- # Rename properties, example:
- # - name: firstName
- # - SimpleUser.name: firstName
- properties: {}
- # Rename query parameters
- parameters: {}
- # Rename enum cases
- enumCases: {}
- # Rename entities
- entities: {"AuthenticateUserByName": "AuthenticateUserByNamePayload"}
- # Rename operation when "paths.style: operations" is used
- operations: {}
- # Rename anynomous collection elements. By default, use
- # a singularized form of the property name
- collectionElements: {}
- comments:
- # Generate comments
- isEnabled: false
- # Generate titles
- isAddingTitles: false
- # Generate description
- isAddingDescription: false
- # Generate examples
- isAddingExamples: false
- # Add links to the external documenatation
- isAddingExternalDocumentation: false
- # Auto-capitalizes comments
- isCapitalizationEnabled: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement