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
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
+ images (required, nullable, ImagesType)
into this:
images:
type: ImagesType
nullable: true
…
Actual
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
+ images (required, nullable, ImagesType)
results in this error stack trace:
Error
at Object.<anonymous> (/usr/local/lib/node_modules/apib2swagger/node_modules/json-schema-to-openapi-schema/index.js:8:30)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/local/lib/node_modules/apib2swagger/src/requests.js:4:19)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) {
name: 'InvalidTypeError',
message: 'Type "null" is not a valid type'
}
Remarks
#65 is related but only shows a workaround which is not useful if you want to use a certain type to be not nullable and nullable in different areas of your API.
The text was updated successfully, but these errors were encountered:
Nominal
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
into this:
Actual
Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:
results in this error stack trace:
Remarks
#65 is related but only shows a workaround which is not useful if you want to use a certain type to be not nullable and nullable in different areas of your API.
The text was updated successfully, but these errors were encountered: