openapi-explorer 0.11.492 → 0.11.494

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.
@@ -17,6 +17,7 @@ export function getTypeInfo(schema, options = {
17
17
  }
18
18
 
19
19
  let dataType = IS_MISSING_TYPE_INFO_TYPE;
20
+ let format = schema.format || ((_schema$items = schema.items) === null || _schema$items === void 0 ? void 0 : _schema$items.format) || '';
20
21
 
21
22
  if (schema.circularReference) {
22
23
  dataType = `{recursive: ${schema.circularReference.name}} `;
@@ -32,13 +33,13 @@ export function getTypeInfo(schema, options = {
32
33
  }
33
34
 
34
35
  if (dataType.includes('┃null') && schema.format) {
35
- schema.format += '┃null';
36
+ format += '┃null';
36
37
  }
37
38
  }
38
39
 
39
40
  const info = {
40
41
  type: dataType,
41
- format: schema.format || ((_schema$items = schema.items) === null || _schema$items === void 0 ? void 0 : _schema$items.format) || '',
42
+ format,
42
43
  cssType: dataType.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+\s]/g, '').toLowerCase(),
43
44
  pattern: schema.pattern && !schema.enum ? schema.pattern : '',
44
45
  readOrWriteOnly: schema.readOnly && '🆁' || schema.writeOnly && '🆆' || '',
@@ -32,6 +32,7 @@ function getTypeInfo(schema, options = {
32
32
  }
33
33
 
34
34
  let dataType = IS_MISSING_TYPE_INFO_TYPE;
35
+ let format = schema.format || ((_schema$items = schema.items) === null || _schema$items === void 0 ? void 0 : _schema$items.format) || '';
35
36
 
36
37
  if (schema.circularReference) {
37
38
  dataType = `{recursive: ${schema.circularReference.name}} `;
@@ -47,13 +48,13 @@ function getTypeInfo(schema, options = {
47
48
  }
48
49
 
49
50
  if (dataType.includes('┃null') && schema.format) {
50
- schema.format += '┃null';
51
+ format += '┃null';
51
52
  }
52
53
  }
53
54
 
54
55
  const info = {
55
56
  type: dataType,
56
- format: schema.format || ((_schema$items = schema.items) === null || _schema$items === void 0 ? void 0 : _schema$items.format) || '',
57
+ format,
57
58
  cssType: dataType.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+\s]/g, '').toLowerCase(),
58
59
  pattern: schema.pattern && !schema.enum ? schema.pattern : '',
59
60
  readOrWriteOnly: schema.readOnly && '🆁' || schema.writeOnly && '🆆' || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "0.11.492",
3
+ "version": "0.11.494",
4
4
  "description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
5
5
  "author": "Rhosys Developers <developers@rhosys.ch>",
6
6
  "type": "module",