openapi-explorer 0.11.494 → 1.0.496
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/dist/browser/openapi-explorer.min.js +4 -4
- package/dist/es/openapi-explorer.js +0 -1
- package/dist/es/styles/schema-styles.js +1 -1
- package/dist/es/templates/navbar-template.js +1 -1
- package/dist/es/utils/schema-utils.js +1 -2
- package/dist/lib/openapi-explorer.js +0 -1
- package/dist/lib/styles/schema-styles.js +1 -1
- package/dist/lib/templates/navbar-template.js +1 -1
- package/dist/lib/utils/schema-utils.js +1 -2
- package/package.json +3 -3
- package/CHANGELOG.md +0 -91
|
@@ -33,7 +33,6 @@ import { checkForAuthToken } from './templates/security-scheme-template';
|
|
|
33
33
|
export default class OpenApiExplorer extends LitElement {
|
|
34
34
|
constructor() {
|
|
35
35
|
super();
|
|
36
|
-
this.isV1 = false;
|
|
37
36
|
this.loading = true;
|
|
38
37
|
const intersectionObserverOptions = {
|
|
39
38
|
root: this.getRootNode().host,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{line-height:1.7;font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.binary,.byte,.date,.date-time,.datetime,.emai,.email,.host,.hostname,.ipv4,.pass,.password,.stri,.string,.uri,.url,.uuid{color:var(--green)}.blue,.deci,.decimal,.doub,.double,.floa,.float,.int3,.int32,.int6,.int64,.inte,.integer,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.cons,.const,.enum{color:var(--
|
|
2
|
+
export default css`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{line-height:1.7;font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.binary,.byte,.date,.date-time,.datetime,.emai,.email,.host,.hostname,.ipv4,.pass,.password,.stri,.string,.uri,.url,.uuid{color:var(--green)}.blue,.deci,.decimal,.doub,.double,.floa,.float,.int3,.int32,.int6,.int64,.inte,.integer,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.cons,.const,.enum{color:var(--purple)}.tree .toolbar{display:flex;justify-content:space-between}.toolbar{width:100%}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:var(--secondary-color);flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}`;
|
|
@@ -40,7 +40,7 @@ export function expandCollapseAllComponents() {
|
|
|
40
40
|
export default function navbarTemplate() {
|
|
41
41
|
var _this$resolvedSpec$co;
|
|
42
42
|
|
|
43
|
-
return html` <nav class="nav-bar ${this.renderStyle}" part="section-navbar"> <slot name="nav-header"></slot> ${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : html` <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;padding:24px;${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}"> ${this.allowSearch === 'false' ? '' : html` <div style="display:flex;flex:1;line-height:22px"> <input id="nav-bar-search" part="textbox textbox-nav-filter" style="width:100%;padding-right:20px;color:var(--nav-hover-text-color);border-color:var(--secondary-color);background-color:var(--nav-hover-bg-color)" type="text" placeholder="${getI18nText('menu.filter')}" @input="${this.onSearchChange}" spellcheck="false"> </div>`} ${this.allowAdvancedSearch === 'false' ? '' : html` <button class="m-btn outline-primary" part="btn btn-fill btn-search" style="margin-left:5px" @click="${this.onShowSearchModalClicked}"> ${getI18nText('menu.search')} </button> `} </div> `} ${html`<nav class="nav-scroll" part="navbar-scroll"> ${this.showInfo === 'false' || !this.resolvedSpec.info ? '' : html`<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="${e => this.scrollToEventTarget(e, false)}"> ${this.
|
|
43
|
+
return html` <nav class="nav-bar ${this.renderStyle}" part="section-navbar"> <slot name="nav-header"></slot> ${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : html` <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;padding:24px;${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}"> ${this.allowSearch === 'false' ? '' : html` <div style="display:flex;flex:1;line-height:22px"> <input id="nav-bar-search" part="textbox textbox-nav-filter" style="width:100%;padding-right:20px;color:var(--nav-hover-text-color);border-color:var(--secondary-color);background-color:var(--nav-hover-bg-color)" type="text" placeholder="${getI18nText('menu.filter')}" @input="${this.onSearchChange}" spellcheck="false"> </div>`} ${this.allowAdvancedSearch === 'false' ? '' : html` <button class="m-btn outline-primary" part="btn btn-fill btn-search" style="margin-left:5px" @click="${this.onShowSearchModalClicked}"> ${getI18nText('menu.search')} </button> `} </div> `} ${html`<nav class="nav-scroll" part="navbar-scroll"> ${this.showInfo === 'false' || !this.resolvedSpec.info ? '' : html`<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="${e => this.scrollToEventTarget(e, false)}"> ${this.resolvedSpec.info.title || getI18nText('menu.overview')} </div>`} ${this.allowServerSelection === 'false' ? '' : html`<div class="nav-bar-info" id="link-servers" data-content-id="servers" @click="${e => this.scrollToEventTarget(e, false)}"> ${getI18nText('menu.api-servers')} </div>`} ${this.allowAuthentication === 'false' || !this.resolvedSpec.securitySchemes ? '' : html`<div class="nav-bar-info" id="link-auth" data-content-id="auth" @click="${e => this.scrollToEventTarget(e, false)}"> ${getI18nText('menu.authentication')} </div>`} <slot name="nav-section" class="custom-nav-section" data-content-id="section" @click="${e => this.scrollToCustomNavSectionTarget(e, false)}"></slot> <div class="sticky-scroll-element ${this.operationsCollapsed ? 'collapsed' : ''}" @click="${() => {
|
|
44
44
|
expandCollapseAll.call(this);
|
|
45
45
|
}}"> <div class="nav-bar-section" part="navbar-operations-header"> <slot name="operations-header"> <div class="nav-bar-section-title">${getI18nText('menu.operations')}</div> </slot> <div style="" part="navbar-operations-header-collapse"> ${this.resolvedSpec.tags.length > 1 && this.resolvedSpec.tags.some(tag => tag.paths.some(path => pathIsInSearch(this.matchPaths, path))) ? html` <div class="toggle">▾</div>` : ''} </div> </div> </div> ${this.resolvedSpec.tags.filter(tag => tag.paths.some(path => pathIsInSearch(this.matchPaths, path))).map(tag => html` <slot name="nav-${tag.elementId}"> <div class="nav-bar-tag-and-paths ${tag.expanded ? '' : 'collapsed'}"> ${tag.name === 'General ⦂' ? html`` : html` <div class="nav-bar-tag" id="link-${tag.elementId}" data-content-id="${tag.elementId}" @click="${() => {
|
|
46
46
|
onExpandCollapse.call(this, tag.elementId);
|
|
@@ -127,8 +127,7 @@ export function getSampleValueByType(schemaObj, fallbackPropertyName, skipExampl
|
|
|
127
127
|
return EXAMPLE_VALUE_FOR_MISSING_TYPE;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
if (schemaObj
|
|
131
|
-
// Indicates a Circular ref
|
|
130
|
+
if (schemaObj.circularReference) {
|
|
132
131
|
return schemaObj.$ref;
|
|
133
132
|
}
|
|
134
133
|
|
|
@@ -72,7 +72,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
72
72
|
class OpenApiExplorer extends _lit.LitElement {
|
|
73
73
|
constructor() {
|
|
74
74
|
super();
|
|
75
|
-
this.isV1 = false;
|
|
76
75
|
this.loading = true;
|
|
77
76
|
const intersectionObserverOptions = {
|
|
78
77
|
root: this.getRootNode().host,
|
|
@@ -5,6 +5,6 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _lit = require("lit");
|
|
7
7
|
|
|
8
|
-
var _default = (0, _lit.css)`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{line-height:1.7;font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.binary,.byte,.date,.date-time,.datetime,.emai,.email,.host,.hostname,.ipv4,.pass,.password,.stri,.string,.uri,.url,.uuid{color:var(--green)}.blue,.deci,.decimal,.doub,.double,.floa,.float,.int3,.int32,.int6,.int64,.inte,.integer,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.cons,.const,.enum{color:var(--
|
|
8
|
+
var _default = (0, _lit.css)`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{line-height:1.7;font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.binary,.byte,.date,.date-time,.datetime,.emai,.email,.host,.hostname,.ipv4,.pass,.password,.stri,.string,.uri,.url,.uuid{color:var(--green)}.blue,.deci,.decimal,.doub,.double,.floa,.float,.int3,.int32,.int6,.int64,.inte,.integer,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.cons,.const,.enum{color:var(--purple)}.tree .toolbar{display:flex;justify-content:space-between}.toolbar{width:100%}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:var(--secondary-color);flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}`;
|
|
9
9
|
|
|
10
10
|
exports.default = _default;
|
|
@@ -52,7 +52,7 @@ function expandCollapseAllComponents() {
|
|
|
52
52
|
function navbarTemplate() {
|
|
53
53
|
var _this$resolvedSpec$co;
|
|
54
54
|
|
|
55
|
-
return (0, _lit.html)` <nav class="nav-bar ${this.renderStyle}" part="section-navbar"> <slot name="nav-header"></slot> ${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : (0, _lit.html)` <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;padding:24px;${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}"> ${this.allowSearch === 'false' ? '' : (0, _lit.html)` <div style="display:flex;flex:1;line-height:22px"> <input id="nav-bar-search" part="textbox textbox-nav-filter" style="width:100%;padding-right:20px;color:var(--nav-hover-text-color);border-color:var(--secondary-color);background-color:var(--nav-hover-bg-color)" type="text" placeholder="${(0, _languages.getI18nText)('menu.filter')}" @input="${this.onSearchChange}" spellcheck="false"> </div>`} ${this.allowAdvancedSearch === 'false' ? '' : (0, _lit.html)` <button class="m-btn outline-primary" part="btn btn-fill btn-search" style="margin-left:5px" @click="${this.onShowSearchModalClicked}"> ${(0, _languages.getI18nText)('menu.search')} </button> `} </div> `} ${(0, _lit.html)`<nav class="nav-scroll" part="navbar-scroll"> ${this.showInfo === 'false' || !this.resolvedSpec.info ? '' : (0, _lit.html)`<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="${e => this.scrollToEventTarget(e, false)}"> ${this.
|
|
55
|
+
return (0, _lit.html)` <nav class="nav-bar ${this.renderStyle}" part="section-navbar"> <slot name="nav-header"></slot> ${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : (0, _lit.html)` <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;padding:24px;${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}"> ${this.allowSearch === 'false' ? '' : (0, _lit.html)` <div style="display:flex;flex:1;line-height:22px"> <input id="nav-bar-search" part="textbox textbox-nav-filter" style="width:100%;padding-right:20px;color:var(--nav-hover-text-color);border-color:var(--secondary-color);background-color:var(--nav-hover-bg-color)" type="text" placeholder="${(0, _languages.getI18nText)('menu.filter')}" @input="${this.onSearchChange}" spellcheck="false"> </div>`} ${this.allowAdvancedSearch === 'false' ? '' : (0, _lit.html)` <button class="m-btn outline-primary" part="btn btn-fill btn-search" style="margin-left:5px" @click="${this.onShowSearchModalClicked}"> ${(0, _languages.getI18nText)('menu.search')} </button> `} </div> `} ${(0, _lit.html)`<nav class="nav-scroll" part="navbar-scroll"> ${this.showInfo === 'false' || !this.resolvedSpec.info ? '' : (0, _lit.html)`<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="${e => this.scrollToEventTarget(e, false)}"> ${this.resolvedSpec.info.title || (0, _languages.getI18nText)('menu.overview')} </div>`} ${this.allowServerSelection === 'false' ? '' : (0, _lit.html)`<div class="nav-bar-info" id="link-servers" data-content-id="servers" @click="${e => this.scrollToEventTarget(e, false)}"> ${(0, _languages.getI18nText)('menu.api-servers')} </div>`} ${this.allowAuthentication === 'false' || !this.resolvedSpec.securitySchemes ? '' : (0, _lit.html)`<div class="nav-bar-info" id="link-auth" data-content-id="auth" @click="${e => this.scrollToEventTarget(e, false)}"> ${(0, _languages.getI18nText)('menu.authentication')} </div>`} <slot name="nav-section" class="custom-nav-section" data-content-id="section" @click="${e => this.scrollToCustomNavSectionTarget(e, false)}"></slot> <div class="sticky-scroll-element ${this.operationsCollapsed ? 'collapsed' : ''}" @click="${() => {
|
|
56
56
|
expandCollapseAll.call(this);
|
|
57
57
|
}}"> <div class="nav-bar-section" part="navbar-operations-header"> <slot name="operations-header"> <div class="nav-bar-section-title">${(0, _languages.getI18nText)('menu.operations')}</div> </slot> <div style="" part="navbar-operations-header-collapse"> ${this.resolvedSpec.tags.length > 1 && this.resolvedSpec.tags.some(tag => tag.paths.some(path => (0, _commonUtils.pathIsInSearch)(this.matchPaths, path))) ? (0, _lit.html)` <div class="toggle">▾</div>` : ''} </div> </div> </div> ${this.resolvedSpec.tags.filter(tag => tag.paths.some(path => (0, _commonUtils.pathIsInSearch)(this.matchPaths, path))).map(tag => (0, _lit.html)` <slot name="nav-${tag.elementId}"> <div class="nav-bar-tag-and-paths ${tag.expanded ? '' : 'collapsed'}"> ${tag.name === 'General ⦂' ? (0, _lit.html)`` : (0, _lit.html)` <div class="nav-bar-tag" id="link-${tag.elementId}" data-content-id="${tag.elementId}" @click="${() => {
|
|
58
58
|
onExpandCollapse.call(this, tag.elementId);
|
|
@@ -143,8 +143,7 @@ function getSampleValueByType(schemaObj, fallbackPropertyName, skipExampleString
|
|
|
143
143
|
return EXAMPLE_VALUE_FOR_MISSING_TYPE;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
if (schemaObj
|
|
147
|
-
// Indicates a Circular ref
|
|
146
|
+
if (schemaObj.circularReference) {
|
|
148
147
|
return schemaObj.$ref;
|
|
149
148
|
}
|
|
150
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.496",
|
|
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",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"marked": "^4.0.16",
|
|
59
59
|
"mime-db": "^1.52.0",
|
|
60
60
|
"openapi-data-validator": "^2.0.40",
|
|
61
|
-
"openapi-resolver": "^4.
|
|
61
|
+
"openapi-resolver": "^4.1.33",
|
|
62
62
|
"prismjs": "^1.29.0",
|
|
63
63
|
"regex-to-strings": "^2.0.3",
|
|
64
64
|
"xml-but-prettier": "^1.0.1"
|
|
@@ -119,6 +119,6 @@
|
|
|
119
119
|
"webpack-dev-server": "^3.11.2"
|
|
120
120
|
},
|
|
121
121
|
"engines": {
|
|
122
|
-
"node": ">=
|
|
122
|
+
"node": ">=16"
|
|
123
123
|
}
|
|
124
124
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# Changelog #
|
|
2
|
-
This package follows standard semvar, `<major>.<minor>.<build>`. No breaking changes will be introduced to existing `<minor>` versions.
|
|
3
|
-
|
|
4
|
-
## 1.0 ##
|
|
5
|
-
* By default uses the `info.title` property of the open api specification for the `overview` section name in the navbar. Falls back to the default when not specified.
|
|
6
|
-
|
|
7
|
-
## 0.11 ##
|
|
8
|
-
* Fix `allOf` for response schema. #119
|
|
9
|
-
* Fixing handling of openapi paths that include url characters
|
|
10
|
-
* Add support for showing external docs
|
|
11
|
-
* Deprecated properties cannot show as required.
|
|
12
|
-
|
|
13
|
-
## 0.10 ##
|
|
14
|
-
* Internationalization support with languages `en` and `fr`
|
|
15
|
-
<<<<<<< HEAD
|
|
16
|
-
* Add a `slot` `nav-header` to the top of the navbar.
|
|
17
|
-
* Add ruby to available languages.
|
|
18
|
-
* Handle missing schema's for responses
|
|
19
|
-
* Update `request-body` slot to include `event` handler for `RequestCleared` for when the user clicks the `CLEAR` button in the API Request operation display.
|
|
20
|
-
* Ensure that `explorerLocation` is present in all `custom events` fired in the context of an operation.
|
|
21
|
-
* Fix expand/collapse transition effect
|
|
22
|
-
* Fix oneof examples display
|
|
23
|
-
* Fix navbar transition
|
|
24
|
-
* Add support for `query` REST verb type
|
|
25
|
-
* Hide empty oneof empty clauses that don't affect displayed properties.
|
|
26
|
-
* Fix schema table transitions and display
|
|
27
|
-
* Fix response code colors to match the rest of the theme
|
|
28
|
-
* Add `header-bg-color` for setting table headers
|
|
29
|
-
* Fix `server-url` dynamic updates, so that updates are passed through to api requests
|
|
30
|
-
* Fix padding in code samples for first line and subsequent lines.
|
|
31
|
-
* Fix path wrapping in navbar and on mobile
|
|
32
|
-
* Improve search to automatically update results
|
|
33
|
-
* Fix `servers` list not being used when `server-url` is not specified.
|
|
34
|
-
* Fix display of `integer` and `date-time` schema styling.
|
|
35
|
-
* Fix `font-size-small` and exposes these variables in the documentation for configuration.
|
|
36
|
-
|
|
37
|
-
## 0.9 ##
|
|
38
|
-
* OpenAPI 3.1 support using `APIDevTools/json-schema-ref-parser`
|
|
39
|
-
* Enable searching for schemas using the search filter.
|
|
40
|
-
* Babel source to remove `??` and `?.` so that consumers of the library don't need to worry about those.
|
|
41
|
-
* `collapse` add new switch to automatically start the operations and components in collapsed mode.
|
|
42
|
-
* Support root level `security` field.
|
|
43
|
-
* `hide-components` attribute to disable showing the components.
|
|
44
|
-
* Fix components to actually collapse when `collapse` is set.
|
|
45
|
-
* Fix displaying tag descriptions correctly and add supporting slot for subsections.
|
|
46
|
-
* Fix schema expanded description text display
|
|
47
|
-
* Fix issues with allOf/oneOf with partially completed data.
|
|
48
|
-
* Sanitize paths coming from the spec that contain invalid characters.
|
|
49
|
-
* Improve display of array types and number/string formats in parameters and models
|
|
50
|
-
* Fix fetch request options to not require unnecessary extra level in setting properties.
|
|
51
|
-
* Fix support for `const` in json schema
|
|
52
|
-
* Fix support for `null` types and add property `display-nulls` to support forcing the display of them in models.
|
|
53
|
-
|
|
54
|
-
## 0.8 ##
|
|
55
|
-
* Removing the `RESET` button as it is confusing for users to see. It only repopulated the defaults, and to do that, you can easily switch tabs and come back.
|
|
56
|
-
* Arrays and Objects read-only indicator is now present at the top level, and these objects are hidden from POST/UPDATE/PATCH bodies.
|
|
57
|
-
* Support $refs to load markdown files into the spec and render them appropriately.
|
|
58
|
-
* Correctly show deprecated arrays and hide deprecated elements from examples.
|
|
59
|
-
* Add aria labels and roles to `<select>` and `<table>` elements.
|
|
60
|
-
* [Bug] - don't force adding the spec url to the list of servers if the server list is already populated
|
|
61
|
-
* [Bug] - Operations/Components expand/collapse incorrectly was scrolling out of view, now it is sticky at the top of the nav section.
|
|
62
|
-
* [Bug] - Remove unnecessary forced capitalization from tags in the nav bar
|
|
63
|
-
* [Bug] - Fix `explorer-location` tracking for updates triggered outside of component
|
|
64
|
-
|
|
65
|
-
## 0.7 ##
|
|
66
|
-
* Introduce `setAuthenticationConfiguration` to set any all configuration related to token management, including clientIds and explicit tokens.
|
|
67
|
-
* Display component titles in bold next to description
|
|
68
|
-
* Enable component scrolling.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
## 0.6 ##
|
|
72
|
-
* Route navigation is contained fully in a query string inside the hash, it will now no longer affect hash based routing
|
|
73
|
-
* Adds the `nonce` to oauth requests to generate an access token.
|
|
74
|
-
* Add scopes display for security schemes.
|
|
75
|
-
* Fixed @request event `headers` to be a Fetch `headers` object.
|
|
76
|
-
|
|
77
|
-
## 0.5 ##
|
|
78
|
-
* Remove deprecated password oauth2 flow
|
|
79
|
-
* Fixed sending API Keys in querystring (not recommended)
|
|
80
|
-
|
|
81
|
-
## 0.4 ##
|
|
82
|
-
* Added custom nav section and custom display for that section.
|
|
83
|
-
* Fix path ordering so it matches spec ordering.
|
|
84
|
-
* Move example to populate placeholder property of input
|
|
85
|
-
|
|
86
|
-
## 0.3 ##
|
|
87
|
-
* Moved npm package target to point at main source location instead of `dist`. The distributable minified version is still present at `/dist/openapi-explorer.min.js`.
|
|
88
|
-
* Add two `navbar-` css `::parts`
|
|
89
|
-
|
|
90
|
-
## 0.2 ##
|
|
91
|
-
* Automate responsive changes from "focused mode" to "scrolling view mode" so no additional parameters are necessary. `responsive` parameter has been removed
|