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.
- package/CHANGELOG.md +1 -0
- package/dist/browser/openapi-explorer.min.js +3 -3
- package/dist/browser/openapi-explorer.min.js.map +1 -1
- package/dist/es/components/api-request.js +2 -2
- package/dist/es/components/schema-table.js +2 -1
- package/dist/es/components/schema-tree.js +2 -1
- package/dist/es/utils/schema-utils.js +4 -1
- package/dist/lib/components/api-request.js +2 -2
- package/dist/lib/components/schema-table.js +2 -1
- package/dist/lib/components/schema-tree.js +2 -1
- package/dist/lib/utils/schema-utils.js +4 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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": {
|