openapi-jsonrpc-jsdoc 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -194,7 +194,7 @@ function resolveSchemaFromTypeNames(names) {
194
194
  }
195
195
 
196
196
  if (enumData?.length === 1) {
197
- if (!format) {
197
+ if (!format && !nullable) {
198
198
  [format] = enumData;
199
199
  }
200
200
  enumData = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-jsonrpc-jsdoc",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Transform JSDoc-annotated JSON-RPC 2.0 methods into OpenAPI specifications.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",