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
The Node API may be useful if dealing with dynamically-created schemas, or you’re using within context of a larger application. It
128
+
The Node API may be useful if dealing with dynamically-created schemas, or you’re using within context of a larger application. Pass in either a JSON-friendly object to load a schema from memory, or a string to load a schema from a local file or remote URL (it will load the file quickly using built-in Node methods). Note that a YAML string isn’t supported in the Node.js API; either use the CLI or convert to JSON using [js-yaml][js-yaml] first.
125
129
126
130
⚠️ As of `v3.3`, this is an async function.
127
131
128
-
It’s important to note that options 2 and 3 are triggered by passing in a `string` rather than an `object`.
129
-
130
132
#### Custom Formatter
131
133
132
134
If using the Node.js API, you can optionally pass a **formatter** to openapi-typescript. This is useful if you want to override the default types and substitute your own.
0 commit comments