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
--exportCore <value> Write core files to disk (default: true)
@@ -403,12 +403,12 @@ as part of your types to ensure everything is able to be TypeScript generated.
403
403
404
404
External references may be:
405
405
**relative references* - references to other files at the same ___location e.g.
406
-
`{ $ref: 'schemas/customer.yml' }`
406
+
`{ $ref: 'schemas/customer.yml' }`
407
407
**remote references* - fully qualified references to another remote ___location
408
-
e.g. `{ $ref: 'https://myexampledomain.com/schemas/customer_schema.yml' }`
408
+
e.g. `{ $ref: 'https://myexampledomain.com/schemas/customer_schema.yml' }`
409
409
410
-
For remote references, both files (when the file is on the current filesystem)
411
-
and http(s) URLs are supported.
410
+
For remote references, both files (when the file is on the current filesystem)
411
+
and http(s) URLs are supported.
412
412
413
413
External references may also contain internal paths in the external schema (e.g.
414
414
`schemas/collection.yml#/definitions/schemas/Customer`) and back-references to
@@ -419,14 +419,6 @@ At start-up, an OpenAPI or Swagger file with external references will be "bundle
419
419
so that all external references and back-references will be resolved (but local
420
420
references preserved).
421
421
422
-
### Compare to other generators
423
-
Depending on which swagger generator you use, you will see different output.
424
-
For instance: Different ways of generating models, services, level of quality,
425
-
HTTP client, etc. I've compiled a list with the results per area and how they
426
-
compare against the openapi-typescript-codegen.
427
-
428
-
[Click here to see the comparison](https://htmlpreview.github.io/?https://github.com/ferdikoomen/openapi-typescript-codegen/blob/master/samples/index.html)
429
-
430
422
431
423
FAQ
432
424
===
@@ -452,18 +444,22 @@ module.exports = {
452
444
453
445
454
446
### Node.js support
447
+
> Since version 3.x [`node-fetch`](https://www.npmjs.com/package/node-fetch) switched to ESM only, breaking many
448
+
> CommonJS based toolchains (like Jest). Right now we do not support this new version!
449
+
455
450
By default, this library will generate a client that is compatible with the (browser based) [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API),
456
451
however this client will not work inside the Node.js environment. If you want to generate a Node.js compatible client then
457
452
you can specify `--client node` in the openapi call:
0 commit comments