You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`wrapper`|`string \| false`|`declare namespace OpenAPI2`| How should this export the types? Pass false to disable rendering a wrapper |
137
+
|`swagger`|`number`|`2`| Manully specify Swagger version (by default it will use `version` in schema) |
138
+
|`camelcase`|`boolean`|`false`| Convert `snake_case` properties to `camelCase`|
139
+
|`propertyMapper`|`function`|`undefined`| Allows you to further manipulate how properties are parsed. See below. |
141
140
142
141
#### PropertyMapper
143
-
In order to allow more control over how properties are parsed, and to specifically handle `x-something`-properties, the `propertyMapper` option may be specified.
144
142
145
-
This is a function that, if specified, is called for each property and allows you to change how swagger-to-ts handles parsing of swagger files.
143
+
In order to allow more control over how properties are parsed, and to specifically handle
144
+
`x-something`-properties, the `propertyMapper` option may be specified.
145
+
146
+
This is a function that, if specified, is called for each property and allows you to change how
147
+
swagger-to-ts handles parsing of swagger files.
146
148
147
149
An example on how to use the `x-nullable` property to control if a property is optional:
148
150
@@ -163,7 +165,6 @@ An example on how to use the `x-nullable` property to control if a property is o
0 commit comments