@rxap/open-api 21.0.1 → 22.0.0-dev.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.
- package/CHANGELOG.md +30 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +74 -5
- package/compodoc/classes/OpenApiHttpResponseError.html +110 -39
- package/compodoc/classes/RxapOpenApiError.html +77 -10
- package/compodoc/classes/SchemaValidationMixin.html +100 -29
- package/compodoc/dependencies.html +124 -35
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/OpenApiConfigService.html +112 -38
- package/compodoc/interfaces/OpenApiInitOptions.html +166 -111
- package/compodoc/interfaces/OpenApiMetaData.html +259 -175
- package/compodoc/interfaces/OperationObjectWithMetadata.html +165 -91
- package/compodoc/interfaces/SchemaValidationResponse.html +247 -182
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +27 -14
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +154 -0
- package/compodoc/miscellaneous/functions.html +86 -19
- package/compodoc/miscellaneous/typealiases.html +46 -4
- package/compodoc/miscellaneous/variables.html +123 -16
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +1247 -1038
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/OpenApiConfigService.html +216 -14
- package/docs/html/classes/OpenApiHttpResponseError.html +215 -26
- package/docs/html/classes/RxapOpenApiError.html +242 -23
- package/docs/html/classes/SchemaValidationMixin.html +245 -16
- package/docs/html/functions/AssertOpenApiV3.html +42 -1
- package/docs/html/functions/IsOpenApiV3.html +42 -1
- package/docs/html/functions/IsReferenceObject.html +42 -1
- package/docs/html/functions/NotContainsReferenceObjects.html +46 -1
- package/docs/html/functions/OpenApiInit.html +43 -1
- package/docs/html/functions/getJsonContentSchema.html +42 -1
- package/docs/html/functions/getJsonSchema.html +42 -1
- package/docs/html/functions/hasJsonContentSchema.html +46 -1
- package/docs/html/functions/hasJsonSchema.html +42 -1
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +40 -4
- package/docs/html/interfaces/OpenApiInitOptions.html +65 -5
- package/docs/html/interfaces/OpenApiMetaData.html +98 -9
- package/docs/html/interfaces/OperationObjectWithMetadata.html +151 -15
- package/docs/html/interfaces/SchemaValidationResponse.html +77 -5
- package/docs/html/modules.html +52 -1
- package/docs/html/types/OperationMap.html +33 -1
- package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +33 -1
- package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +33 -1
- package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +33 -1
- package/docs/html/variables/DISABLE_VALIDATION.html +33 -1
- package/docs/html/variables/OPEN_API_OPERATION.html +33 -1
- package/docs/html/variables/OPEN_API_OPERATION_ID.html +33 -1
- package/docs/html/variables/OPEN_API_SERVER_ID.html +33 -1
- package/docs/html/variables/OPEN_API_SERVER_INDEX.html +33 -1
- package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +33 -1
- package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +33 -1
- package/docs/html/variables/injectOpenApiBaseUrlHttpInterceptorFn.html +33 -0
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/OpenApiConfigService.md +27 -27
- package/docs/markdown/classes/OpenApiHttpResponseError.md +26 -26
- package/docs/markdown/classes/RxapOpenApiError.md +25 -25
- package/docs/markdown/classes/SchemaValidationMixin.md +36 -30
- package/docs/markdown/functions/AssertOpenApiV3.md +3 -3
- package/docs/markdown/functions/IsOpenApiV3.md +3 -3
- package/docs/markdown/functions/IsReferenceObject.md +3 -3
- package/docs/markdown/functions/NotContainsReferenceObjects.md +7 -5
- package/docs/markdown/functions/OpenApiInit.md +5 -5
- package/docs/markdown/functions/getJsonContentSchema.md +5 -5
- package/docs/markdown/functions/getJsonSchema.md +5 -5
- package/docs/markdown/functions/hasJsonContentSchema.md +8 -6
- package/docs/markdown/functions/hasJsonSchema.md +3 -3
- package/docs/markdown/globals.md +3 -3
- package/docs/markdown/interfaces/OpenApiInitOptions.md +6 -6
- package/docs/markdown/interfaces/OpenApiMetaData.md +12 -12
- package/docs/markdown/interfaces/OperationObjectWithMetadata.md +15 -15
- package/docs/markdown/interfaces/SchemaValidationResponse.md +11 -9
- package/docs/markdown/type-aliases/OperationMap.md +3 -3
- package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
- package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
- package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
- package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
- package/docs/markdown/variables/OPEN_API_OPERATION.md +2 -2
- package/docs/markdown/variables/OPEN_API_OPERATION_ID.md +2 -2
- package/docs/markdown/variables/OPEN_API_SERVER_ID.md +3 -3
- package/docs/markdown/variables/OPEN_API_SERVER_INDEX.md +2 -2
- package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
- package/docs/markdown/variables/injectOpenApiBaseUrlHttpInterceptorFn.md +11 -0
- package/docs/wiki/Class.OpenApiConfigService.md +26 -26
- package/docs/wiki/Class.OpenApiHttpResponseError.md +25 -25
- package/docs/wiki/Class.RxapOpenApiError.md +24 -24
- package/docs/wiki/Class.SchemaValidationMixin.md +35 -29
- package/docs/wiki/Function.AssertOpenApiV3.md +2 -2
- package/docs/wiki/Function.IsOpenApiV3.md +2 -2
- package/docs/wiki/Function.IsReferenceObject.md +2 -2
- package/docs/wiki/Function.NotContainsReferenceObjects.md +6 -4
- package/docs/wiki/Function.OpenApiInit.md +4 -4
- package/docs/wiki/Function.getJsonContentSchema.md +4 -4
- package/docs/wiki/Function.getJsonSchema.md +4 -4
- package/docs/wiki/Function.hasJsonContentSchema.md +7 -5
- package/docs/wiki/Function.hasJsonSchema.md +2 -2
- package/docs/wiki/Interface.OpenApiInitOptions.md +5 -5
- package/docs/wiki/Interface.OpenApiMetaData.md +11 -11
- package/docs/wiki/Interface.OperationObjectWithMetadata.md +14 -14
- package/docs/wiki/Interface.SchemaValidationResponse.md +10 -8
- package/docs/wiki/TypeAlias.OperationMap.md +2 -2
- package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
- package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
- package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
- package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
- package/docs/wiki/Variable.OPEN_API_OPERATION.md +1 -1
- package/docs/wiki/Variable.OPEN_API_OPERATION_ID.md +1 -1
- package/docs/wiki/Variable.OPEN_API_SERVER_ID.md +2 -2
- package/docs/wiki/Variable.OPEN_API_SERVER_INDEX.md +1 -1
- package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
- package/docs/wiki/Variable.injectOpenApiBaseUrlHttpInterceptorFn.md +7 -0
- package/docs/wiki/_Sidebar.md +1 -1
- package/docs/wiki/globals.md +2 -2
- package/fesm2022/rxap-open-api-data-source-table.mjs +212 -162
- package/fesm2022/rxap-open-api-data-source-table.mjs.map +1 -1
- package/fesm2022/rxap-open-api-data-source.mjs +243 -188
- package/fesm2022/rxap-open-api-data-source.mjs.map +1 -1
- package/fesm2022/rxap-open-api-http-resource.mjs +13 -38
- package/fesm2022/rxap-open-api-http-resource.mjs.map +1 -1
- package/fesm2022/rxap-open-api-remote-method.mjs +299 -263
- package/fesm2022/rxap-open-api-remote-method.mjs.map +1 -1
- package/fesm2022/rxap-open-api-testing.mjs +55 -82
- package/fesm2022/rxap-open-api-testing.mjs.map +1 -1
- package/fesm2022/rxap-open-api.mjs +439 -633
- package/fesm2022/rxap-open-api.mjs.map +1 -1
- package/package.json +30 -30
- package/types/rxap-open-api-data-source-table.d.ts +47 -40
- package/types/rxap-open-api-data-source.d.ts +58 -52
- package/types/rxap-open-api-http-resource.d.ts +13 -17
- package/types/rxap-open-api-remote-method.d.ts +89 -86
- package/types/rxap-open-api-testing.d.ts +25 -28
- package/types/rxap-open-api.d.ts +153 -162
- package/docs/html/functions/injectOpenApiBaseUrlHttpInterceptorFn.html +0 -1
- package/docs/markdown/functions/injectOpenApiBaseUrlHttpInterceptorFn.md +0 -25
- package/docs/wiki/Function.injectOpenApiBaseUrlHttpInterceptorFn.md +0 -21
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -96,47 +117,99 @@
|
|
|
96
117
|
|
|
97
118
|
|
|
98
119
|
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
99
124
|
<ol class="breadcrumb">
|
|
100
125
|
<li class="breadcrumb-item">Dependencies</li>
|
|
101
126
|
</ol>
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
127
|
+
<div class="dependencies-table-wrapper">
|
|
128
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
129
|
+
<thead>
|
|
130
|
+
<tr>
|
|
131
|
+
<th>Name</th>
|
|
132
|
+
<th>Version</th>
|
|
133
|
+
</tr>
|
|
134
|
+
</thead>
|
|
135
|
+
<tbody>
|
|
136
|
+
<tr>
|
|
137
|
+
<td><b>@nx/devkit</b></td>
|
|
138
|
+
<td>24.0.6</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td><b>tslib</b></td>
|
|
142
|
+
<td>2.9.1</td>
|
|
143
|
+
</tr>
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</div>
|
|
108
147
|
|
|
109
148
|
|
|
110
149
|
<br/>
|
|
111
150
|
<ol class="breadcrumb">
|
|
112
151
|
<li class="breadcrumb-item">Peer dependencies</li>
|
|
113
152
|
</ol>
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
153
|
+
<div class="dependencies-table-wrapper">
|
|
154
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
155
|
+
<thead>
|
|
156
|
+
<tr>
|
|
157
|
+
<th>Name</th>
|
|
158
|
+
<th>Version</th>
|
|
159
|
+
</tr>
|
|
160
|
+
</thead>
|
|
161
|
+
<tbody>
|
|
162
|
+
<tr>
|
|
163
|
+
<td><b>@angular/common</b></td>
|
|
164
|
+
<td>^22.0.0</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr>
|
|
167
|
+
<td><b>@angular/core</b></td>
|
|
168
|
+
<td>^22.0.0</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td><b>@rxap/config</b></td>
|
|
172
|
+
<td>^22.0.0-dev.1</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td><b>@rxap/data-source</b></td>
|
|
176
|
+
<td>^22.0.0-dev.1</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<td><b>@rxap/environment</b></td>
|
|
180
|
+
<td>^22.0.0-dev.1</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td><b>@rxap/mixin</b></td>
|
|
184
|
+
<td>^16.0.18-dev.0</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td><b>@rxap/remote-method</b></td>
|
|
188
|
+
<td>^22.0.0-dev.1</td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td><b>@rxap/rxjs</b></td>
|
|
192
|
+
<td>^1.1.19-dev.0</td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td><b>@rxap/utilities</b></td>
|
|
196
|
+
<td>^16.5.3-dev.0</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td><b>ajv</b></td>
|
|
200
|
+
<td>^8.12.0</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr>
|
|
203
|
+
<td><b>openapi-types</b></td>
|
|
204
|
+
<td>^10.0.0</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td><b>rxjs</b></td>
|
|
208
|
+
<td>^7.0.0</td>
|
|
209
|
+
</tr>
|
|
210
|
+
</tbody>
|
|
211
|
+
</table>
|
|
212
|
+
</div>
|
|
140
213
|
|
|
141
214
|
|
|
142
215
|
|
|
@@ -175,6 +248,24 @@
|
|
|
175
248
|
|
|
176
249
|
<script>
|
|
177
250
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
251
|
+
var updateDarkModeSwitchOffset = function () {
|
|
252
|
+
var content = document.querySelector('.content');
|
|
253
|
+
var scrollbarWidth = 0;
|
|
254
|
+
|
|
255
|
+
if (content) {
|
|
256
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
document.documentElement.style.setProperty(
|
|
260
|
+
'--content-scrollbar-width',
|
|
261
|
+
scrollbarWidth + 'px'
|
|
262
|
+
);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
updateDarkModeSwitchOffset();
|
|
266
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
267
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
268
|
+
|
|
178
269
|
checkToggle(darkModeState);
|
|
179
270
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
180
271
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -190,14 +281,12 @@
|
|
|
190
281
|
<script src="./js/libs/lit-html.js"></script>
|
|
191
282
|
|
|
192
283
|
<script src="./js/menu-wc.js" defer></script>
|
|
193
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
194
284
|
|
|
195
285
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
196
286
|
|
|
197
287
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
198
288
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
199
289
|
<script src="./js/libs/promise.min.js"></script>
|
|
200
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
201
290
|
|
|
202
291
|
<script src="./js/compodoc.js"></script>
|
|
203
292
|
|
package/compodoc/index.html
CHANGED
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -79,9 +100,10 @@
|
|
|
79
100
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
101
|
</div>
|
|
81
102
|
<!-- START CONTENT -->
|
|
82
|
-
<div class="content
|
|
103
|
+
<div class="content readme">
|
|
83
104
|
<div class="content-data">
|
|
84
105
|
|
|
106
|
+
|
|
85
107
|
<p>This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utilities for building HTTP requests based on OpenAPI definitions.</p>
|
|
86
108
|
<p><a href="https://www.npmjs.com/package/@rxap/open-api"><img src="https://img.shields.io/npm/v/@rxap/open-api?style=flat-square" alt="npm version" class="img-responsive"></a>
|
|
87
109
|
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly" class="img-responsive"></a>
|
|
@@ -123,6 +145,9 @@
|
|
|
123
145
|
|
|
124
146
|
|
|
125
147
|
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
126
151
|
|
|
127
152
|
|
|
128
153
|
|
|
@@ -151,13 +176,31 @@
|
|
|
151
176
|
|
|
152
177
|
<script>
|
|
153
178
|
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
|
|
154
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = '
|
|
179
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'readme';
|
|
155
180
|
var COMPODOC_CURRENT_PAGE_URL = 'index.html';
|
|
156
181
|
var MAX_SEARCH_RESULTS = 15;
|
|
157
182
|
</script>
|
|
158
183
|
|
|
159
184
|
<script>
|
|
160
185
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
186
|
+
var updateDarkModeSwitchOffset = function () {
|
|
187
|
+
var content = document.querySelector('.content');
|
|
188
|
+
var scrollbarWidth = 0;
|
|
189
|
+
|
|
190
|
+
if (content) {
|
|
191
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
document.documentElement.style.setProperty(
|
|
195
|
+
'--content-scrollbar-width',
|
|
196
|
+
scrollbarWidth + 'px'
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
updateDarkModeSwitchOffset();
|
|
201
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
202
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
203
|
+
|
|
161
204
|
checkToggle(darkModeState);
|
|
162
205
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
163
206
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -173,14 +216,12 @@
|
|
|
173
216
|
<script src="./js/libs/lit-html.js"></script>
|
|
174
217
|
|
|
175
218
|
<script src="./js/menu-wc.js" defer></script>
|
|
176
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
177
219
|
|
|
178
220
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
179
221
|
|
|
180
222
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
181
223
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
182
224
|
<script src="./js/libs/promise.min.js"></script>
|
|
183
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
184
225
|
|
|
185
226
|
<script src="./js/compodoc.js"></script>
|
|
186
227
|
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >OpenApiConfigService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/open-api-config.service.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,74 +147,91 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/open-api-config.service.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
153
|
+
<section data-compodoc="block-metadata">
|
|
154
|
+
<h3>Metadata</h3>
|
|
155
|
+
<table class="table table-sm table-hover metadata">
|
|
156
|
+
<tbody>
|
|
157
|
+
<tr>
|
|
158
|
+
<td class="col-md-3">providedIn</td>
|
|
159
|
+
<td class="col-md-9"><code>root</code></td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
</table>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
123
165
|
|
|
166
|
+
</div>
|
|
124
167
|
|
|
168
|
+
<div class="tab-pane fade " id="api">
|
|
125
169
|
<section data-compodoc="block-index">
|
|
126
170
|
<h3 id="index">Index</h3>
|
|
127
|
-
|
|
128
|
-
|
|
171
|
+
<table class="table table-sm table-bordered index-table">
|
|
172
|
+
<tbody>
|
|
129
173
|
<tr>
|
|
130
|
-
<td class="col-md-
|
|
174
|
+
<td class="col-md-3">
|
|
131
175
|
<h6><b>Properties</b></h6>
|
|
132
176
|
</td>
|
|
133
|
-
|
|
134
|
-
<tr>
|
|
135
|
-
<td class="col-md-4">
|
|
177
|
+
<td class="col-md-9">
|
|
136
178
|
<ul class="index-list">
|
|
137
179
|
<li>
|
|
180
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
138
181
|
<span class="modifier">Static</span>
|
|
139
182
|
<a href="#Config" >Config</a>
|
|
140
183
|
</li>
|
|
141
184
|
<li>
|
|
185
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
142
186
|
<span class="modifier">Public</span>
|
|
143
187
|
<a href="#defaultServerIndex" >defaultServerIndex</a>
|
|
144
188
|
</li>
|
|
145
189
|
<li>
|
|
190
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
146
191
|
<span class="modifier">Static</span>
|
|
147
192
|
<a href="#DefaultServerIndex" >DefaultServerIndex</a>
|
|
148
193
|
</li>
|
|
149
194
|
</ul>
|
|
150
195
|
</td>
|
|
151
196
|
</tr>
|
|
197
|
+
</tbody>
|
|
198
|
+
</table>
|
|
152
199
|
|
|
200
|
+
<table class="table table-sm table-bordered index-table">
|
|
201
|
+
<tbody>
|
|
153
202
|
<tr>
|
|
154
|
-
<td class="col-md-
|
|
203
|
+
<td class="col-md-3">
|
|
155
204
|
<h6><b>Methods</b></h6>
|
|
156
205
|
</td>
|
|
157
|
-
|
|
158
|
-
<tr>
|
|
159
|
-
<td class="col-md-4">
|
|
206
|
+
<td class="col-md-9">
|
|
160
207
|
<ul class="index-list">
|
|
161
208
|
<li>
|
|
209
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
162
210
|
<span class="modifier">Public</span>
|
|
163
211
|
<a href="#getBaseUrl" >getBaseUrl</a>
|
|
164
212
|
</li>
|
|
165
213
|
<li>
|
|
214
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
166
215
|
<span class="modifier">Public</span>
|
|
167
216
|
<a href="#getOperation" >getOperation</a>
|
|
168
217
|
</li>
|
|
169
218
|
<li>
|
|
219
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
170
220
|
<span class="modifier">Static</span>
|
|
171
221
|
<a href="#GetOperation" >GetOperation</a>
|
|
172
222
|
</li>
|
|
173
223
|
<li>
|
|
224
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
174
225
|
<span class="modifier">Public</span>
|
|
175
226
|
<a href="#insertServer" >insertServer</a>
|
|
176
227
|
</li>
|
|
177
228
|
<li>
|
|
229
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
178
230
|
<span class="modifier">Static</span>
|
|
179
231
|
<a href="#InsertServer" >InsertServer</a>
|
|
180
232
|
</li>
|
|
181
233
|
<li>
|
|
234
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
182
235
|
<span class="modifier">Static</span>
|
|
183
236
|
<span class="modifier">Async</span>
|
|
184
237
|
<a href="#Load" >Load</a>
|
|
@@ -186,30 +239,34 @@
|
|
|
186
239
|
</ul>
|
|
187
240
|
</td>
|
|
188
241
|
</tr>
|
|
242
|
+
</tbody>
|
|
243
|
+
</table>
|
|
189
244
|
|
|
190
245
|
|
|
191
246
|
|
|
192
247
|
|
|
193
248
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
</
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
249
|
+
<table class="table table-sm table-bordered index-table">
|
|
250
|
+
<tbody>
|
|
251
|
+
<tr>
|
|
252
|
+
<td class="col-md-3">
|
|
253
|
+
<h6><b>Accessors</b></h6>
|
|
254
|
+
</td>
|
|
255
|
+
<td class="col-md-9">
|
|
256
|
+
<ul class="index-list">
|
|
257
|
+
<li>
|
|
258
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
259
|
+
<a href="#serverIds" >serverIds</a>
|
|
260
|
+
</li>
|
|
261
|
+
<li>
|
|
262
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
263
|
+
<a href="#config" >config</a>
|
|
264
|
+
</li>
|
|
265
|
+
</ul>
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
</tbody>
|
|
269
|
+
</table>
|
|
213
270
|
</section>
|
|
214
271
|
|
|
215
272
|
<section data-compodoc="block-constructor">
|
|
@@ -787,6 +844,7 @@
|
|
|
787
844
|
</tbody>
|
|
788
845
|
</table>
|
|
789
846
|
</section>
|
|
847
|
+
|
|
790
848
|
<section data-compodoc="block-properties">
|
|
791
849
|
|
|
792
850
|
<h3 id="inputs">
|
|
@@ -1242,6 +1300,24 @@ export class OpenApiConfigService {
|
|
|
1242
1300
|
|
|
1243
1301
|
<script>
|
|
1244
1302
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
1303
|
+
var updateDarkModeSwitchOffset = function () {
|
|
1304
|
+
var content = document.querySelector('.content');
|
|
1305
|
+
var scrollbarWidth = 0;
|
|
1306
|
+
|
|
1307
|
+
if (content) {
|
|
1308
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
document.documentElement.style.setProperty(
|
|
1312
|
+
'--content-scrollbar-width',
|
|
1313
|
+
scrollbarWidth + 'px'
|
|
1314
|
+
);
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
updateDarkModeSwitchOffset();
|
|
1318
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
1319
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
1320
|
+
|
|
1245
1321
|
checkToggle(darkModeState);
|
|
1246
1322
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
1247
1323
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -1257,14 +1333,12 @@ export class OpenApiConfigService {
|
|
|
1257
1333
|
<script src="../js/libs/lit-html.js"></script>
|
|
1258
1334
|
|
|
1259
1335
|
<script src="../js/menu-wc.js" defer></script>
|
|
1260
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
1261
1336
|
|
|
1262
1337
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
1263
1338
|
|
|
1264
1339
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
1265
1340
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
1266
1341
|
<script src="../js/libs/promise.min.js"></script>
|
|
1267
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
1268
1342
|
|
|
1269
1343
|
<script src="../js/compodoc.js"></script>
|
|
1270
1344
|
|