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
| customType | ({<br>schemaObject: SchemaObject \| ReferenceObject,<br>namespace: string,<br>originGetType:(schemaObject: SchemaObject \| ReferenceObject, namespace: string, schemas?: ComponentsObject['schemas']) => string,<br>schemas?: ComponentsObject['schemas'],<br>}) => string | custom type <br> _returning a non-string will use the default method to get the type_|
256
264
| customFileNames | (<br>operationObject: OperationObject,<br>apiPath: string,<br>apiMethod: string,<br>) => string[]| custom generate request client controller file name, can return multiple: generate multiple files. <br> _if the return value is empty, the default getFileNames is used_|
257
265
266
+
## Apifox-Config
267
+
268
+
| attribute | type | description | required |
269
+
| --- | --- | --- | --- |
270
+
| projectId | string | project id | true |
271
+
| local | string | language(default:zh-CN) | false |
- default generate JSON Schemas based on [components.schemas](https://spec.openapis.org/oas/latest.html#components-object), JSON Schemas corresponding to [paths](https://spec.openapis.org/oas/latest.html#paths-object) currently need to be parsed by yourself
@@ -275,6 +294,33 @@ currently using [mockjs](http://mockjs.com) to generate mock data, the mocks fil
275
294
276
295
it is recommended to use a custom request function to adapt to uniapp. you can also use the `@uni-helper/axios-adapter` adapter. for details, see [【use docs 2.2】](https://github.com/openapi-ui/openapi-ts-request/issues/100)
277
296
297
+
## Notes on Upgrading Older Versions
298
+
299
+
- Current naming convention changes
300
+
- Incremental changes have been made to the current version and will not affect previous versions.
301
+
- The `openapi-ts` command can be deprecated to use `openapi`
302
+
303
+
### The configuration follows the naming convention of the old version as follows
0 commit comments