openapi-explorer 0.9.374 → 0.9.381

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.
@@ -20,6 +20,8 @@ const IS_MISSING_TYPE_INFO_TYPE = '';
20
20
  /* Generates an schema object containing type and constraint info */
21
21
 
22
22
  function getTypeInfo(schema) {
23
+ var _schema$items;
24
+
23
25
  if (!schema) {
24
26
  return undefined;
25
27
  }
@@ -42,7 +44,7 @@ function getTypeInfo(schema) {
42
44
 
43
45
  const info = {
44
46
  type: dataType,
45
- format: schema.format || '',
47
+ format: schema.format || ((_schema$items = schema.items) === null || _schema$items === void 0 ? void 0 : _schema$items.format) || '',
46
48
  pattern: schema.pattern && !schema.enum ? schema.pattern : '',
47
49
  readOrWriteOnly: schema.readOnly && '🆁' || schema.writeOnly && '🆆' || '',
48
50
  deprecated: !!schema.deprecated,
@@ -98,6 +100,7 @@ function getTypeInfo(schema) {
98
100
  info.constraint = constraint;
99
101
  info.html = JSON.stringify({
100
102
  type: info.type,
103
+ format: info.format,
101
104
  readOrWriteOnly: info.readOrWriteOnly,
102
105
  constraint: info.constraint,
103
106
  defaultValue: info.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "0.9.374",
3
+ "version": "0.9.381",
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
  "repository": {