@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
package/compodoc/js/tabs.js
CHANGED
|
@@ -1,21 +1,104 @@
|
|
|
1
1
|
document.addEventListener('DOMContentLoaded', function() {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var tabContainers = document.getElementsByClassName('nav-tabs');
|
|
3
|
+
var tabLinks = [];
|
|
4
|
+
var tabAliasMap = {
|
|
5
|
+
'template': 'templateData',
|
|
6
|
+
'dom-tree': 'tree'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function updateAddress(e) {
|
|
10
|
+
if (history.pushState && e.target.dataset.link) {
|
|
11
|
+
history.pushState(null, null, '#' + e.target.dataset.link);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function findTabLinkByDataLink(dataLink) {
|
|
16
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
17
|
+
if (tabLinks[i].dataset.link === dataLink) {
|
|
18
|
+
return tabLinks[i];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getClosestTabPane(element) {
|
|
25
|
+
if (!element) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (element.closest) {
|
|
29
|
+
return element.closest('.tab-pane');
|
|
30
|
+
}
|
|
31
|
+
var node = element;
|
|
32
|
+
while (node) {
|
|
33
|
+
if (node.classList && node.classList.contains('tab-pane')) {
|
|
34
|
+
return node;
|
|
6
35
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
36
|
+
node = node.parentElement;
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function findAnchorTarget(hashValue) {
|
|
42
|
+
if (!hashValue) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var targetById = document.getElementById(hashValue);
|
|
47
|
+
if (targetById) {
|
|
48
|
+
return targetById;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var targetsByName = document.getElementsByName(hashValue);
|
|
52
|
+
if (targetsByName && targetsByName.length > 0) {
|
|
53
|
+
return targetsByName[0];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function activateTabFromHash() {
|
|
60
|
+
if (location.hash === '') {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var currentHash = decodeURIComponent(location.hash.substr(1));
|
|
65
|
+
if (!currentHash) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var resolvedHash = tabAliasMap[currentHash] || currentHash;
|
|
70
|
+
var directMatch = findTabLinkByDataLink(resolvedHash);
|
|
71
|
+
if (directMatch) {
|
|
72
|
+
directMatch.click();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (currentHash.indexOf('source.') === 0) {
|
|
77
|
+
var sourceTabLink = findTabLinkByDataLink('source');
|
|
78
|
+
if (sourceTabLink) {
|
|
79
|
+
sourceTabLink.click();
|
|
80
|
+
return;
|
|
18
81
|
}
|
|
19
82
|
}
|
|
83
|
+
|
|
84
|
+
var targetAnchor = findAnchorTarget(currentHash);
|
|
85
|
+
var tabPane = getClosestTabPane(targetAnchor);
|
|
86
|
+
if (!tabPane || !tabPane.id) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var tabLink = findTabLinkByDataLink(tabPane.id);
|
|
91
|
+
if (tabLink) {
|
|
92
|
+
tabLink.click();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (tabContainers.length > 0) {
|
|
97
|
+
tabLinks = tabContainers[0].querySelectorAll('a[data-link]');
|
|
98
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
99
|
+
tabLinks[i].addEventListener('click', updateAddress);
|
|
100
|
+
}
|
|
101
|
+
activateTabFromHash();
|
|
102
|
+
window.addEventListener('hashchange', activateTabFromHash, false);
|
|
20
103
|
}
|
|
21
104
|
});
|
package/compodoc/js/tree.js
CHANGED
|
@@ -58,10 +58,18 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
58
58
|
type
|
|
59
59
|
} of it) {
|
|
60
60
|
if (type === 'NonIterableObject' && typeof key !== 'undefined' && value.type === 'tag') {
|
|
61
|
+
var parentId = parentNode && parentNode._parent ? parentNode._parent._id : null,
|
|
62
|
+
parentLevel = parentNode && parentNode._parent && typeof parentNode._parent._level === 'number'
|
|
63
|
+
? parentNode._parent._level
|
|
64
|
+
: 0,
|
|
65
|
+
nodeLevel = parentLevel + 1;
|
|
66
|
+
value._level = nodeLevel;
|
|
67
|
+
|
|
61
68
|
var newNode = {
|
|
62
69
|
id: value._id,
|
|
63
70
|
label: value.name,
|
|
64
|
-
type: value.type
|
|
71
|
+
type: value.type,
|
|
72
|
+
level: nodeLevel
|
|
65
73
|
};
|
|
66
74
|
for(var i = 0; i < COMPONENTS.length; i++) {
|
|
67
75
|
if (COMPONENTS[i].selector === value.name) {
|
|
@@ -88,17 +96,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
newNodes.push(newNode);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
if (parentId !== null && typeof parentId !== 'undefined') {
|
|
100
|
+
newEdges.push({
|
|
101
|
+
from: parentId,
|
|
102
|
+
to: value._id
|
|
103
|
+
});
|
|
104
|
+
}
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
newNodes.shift();
|
|
100
109
|
|
|
110
|
+
var stripHtml = function(value) {
|
|
111
|
+
return String(value || '').replace(/<[^>]*>/g, '');
|
|
112
|
+
},
|
|
113
|
+
longestLabelLength = newNodes.reduce(function(max, node) {
|
|
114
|
+
var labelLength = stripHtml(node.label).length;
|
|
115
|
+
return Math.max(max, labelLength);
|
|
116
|
+
}, 0),
|
|
117
|
+
uniformNodeWidth = Math.max(40, Math.ceil(longestLabelLength * 8 + 28));
|
|
118
|
+
|
|
101
119
|
var container = document.getElementById('tree-container'),
|
|
120
|
+
isDarkMode = document.body && document.body.classList.contains('dark'),
|
|
121
|
+
treeFontColor = isDarkMode ? '#f0f0f0' : '#2d2d2d',
|
|
102
122
|
data = {
|
|
103
123
|
nodes: newNodes,
|
|
104
124
|
edges: newEdges
|
|
@@ -107,12 +127,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
107
127
|
layout: {
|
|
108
128
|
hierarchical: {
|
|
109
129
|
sortMethod: 'directed',
|
|
130
|
+
shakeTowards: 'roots',
|
|
131
|
+
levelSeparation: 130,
|
|
110
132
|
enabled: true
|
|
111
133
|
}
|
|
112
134
|
},
|
|
135
|
+
edges: {
|
|
136
|
+
smooth: {
|
|
137
|
+
enabled: true,
|
|
138
|
+
type: 'cubicBezier',
|
|
139
|
+
forceDirection: 'vertical',
|
|
140
|
+
roundness: 0.45
|
|
141
|
+
}
|
|
142
|
+
},
|
|
113
143
|
nodes: {
|
|
114
144
|
shape: 'ellipse',
|
|
115
|
-
fixed: true
|
|
145
|
+
fixed: true,
|
|
146
|
+
font: {
|
|
147
|
+
color: treeFontColor
|
|
148
|
+
},
|
|
149
|
+
widthConstraint: {
|
|
150
|
+
minimum: uniformNodeWidth,
|
|
151
|
+
maximum: uniformNodeWidth
|
|
152
|
+
}
|
|
116
153
|
}
|
|
117
154
|
},
|
|
118
155
|
|
package/compodoc/license.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,13 @@
|
|
|
79
100
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
101
|
</div>
|
|
81
102
|
<!-- START CONTENT -->
|
|
82
|
-
<div class="content
|
|
103
|
+
<div class="content license">
|
|
83
104
|
<div class="content-data">
|
|
84
105
|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
85
110
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> GNU GENERAL PUBLIC LICENSE
|
|
86
111
|
Version 3, 29 June 2007</code></pre></div><p> Copyright (C) 2007 Free Software Foundation, Inc. <a href="https://fsf.org/">https://fsf.org/</a>
|
|
87
112
|
Everyone is permitted to copy and distribute verbatim copies
|
|
@@ -636,7 +661,8 @@ reviewing courts shall apply local law that most closely approximates
|
|
|
636
661
|
an absolute waiver of all civil liability in connection with the
|
|
637
662
|
Program, unless a warranty or assumption of liability accompanies a
|
|
638
663
|
copy of the Program in return for a fee.</p>
|
|
639
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS
|
|
664
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS
|
|
665
|
+
</code></pre></div>
|
|
640
666
|
|
|
641
667
|
|
|
642
668
|
|
|
@@ -682,13 +708,31 @@ copy of the Program in return for a fee.</p>
|
|
|
682
708
|
|
|
683
709
|
<script>
|
|
684
710
|
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
|
|
685
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = '
|
|
711
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'license';
|
|
686
712
|
var COMPODOC_CURRENT_PAGE_URL = 'license.html';
|
|
687
713
|
var MAX_SEARCH_RESULTS = 15;
|
|
688
714
|
</script>
|
|
689
715
|
|
|
690
716
|
<script>
|
|
691
717
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
718
|
+
var updateDarkModeSwitchOffset = function () {
|
|
719
|
+
var content = document.querySelector('.content');
|
|
720
|
+
var scrollbarWidth = 0;
|
|
721
|
+
|
|
722
|
+
if (content) {
|
|
723
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
document.documentElement.style.setProperty(
|
|
727
|
+
'--content-scrollbar-width',
|
|
728
|
+
scrollbarWidth + 'px'
|
|
729
|
+
);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
updateDarkModeSwitchOffset();
|
|
733
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
734
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
735
|
+
|
|
692
736
|
checkToggle(darkModeState);
|
|
693
737
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
694
738
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -704,14 +748,12 @@ copy of the Program in return for a fee.</p>
|
|
|
704
748
|
<script src="./js/libs/lit-html.js"></script>
|
|
705
749
|
|
|
706
750
|
<script src="./js/menu-wc.js" defer></script>
|
|
707
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
708
751
|
|
|
709
752
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
710
753
|
|
|
711
754
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
712
755
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
713
756
|
<script src="./js/libs/promise.min.js"></script>
|
|
714
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
715
757
|
|
|
716
758
|
<script src="./js/compodoc.js"></script>
|
|
717
759
|
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# angular-open-api
|
|
2
|
+
|
|
3
|
+
> 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.
|
|
4
|
+
|
|
5
|
+
> Generated by compodoc 2.0.0 at 2026-11-23T22:34:11.389Z, llm-md export.
|
|
6
|
+
|
|
7
|
+
## Services / Injectables
|
|
8
|
+
|
|
9
|
+
### OpenApiConfigService
|
|
10
|
+
|
|
11
|
+
File: `src/lib/open-api-config.service.ts`
|
|
12
|
+
providedIn: `root`
|
|
13
|
+
|
|
14
|
+
Properties:
|
|
15
|
+
- `Config: OpenAPIV3.Document | null = null`
|
|
16
|
+
- `defaultServerIndex: number = OpenApiConfigService.DefaultServerIndex`
|
|
17
|
+
- `DefaultServerIndex: number = 0`
|
|
18
|
+
|
|
19
|
+
Methods:
|
|
20
|
+
- `getBaseUrl(serverIndex: number = this.defaultServerIndex, serverId?: string): string`
|
|
21
|
+
- `getOperation(operationId: string): OperationObjectWithMetadata`
|
|
22
|
+
- `GetOperation(operationId: string): OperationObjectWithMetadata`
|
|
23
|
+
- `insertServer(serverConfig: OpenAPIV3.ServerObject, index: number = this.defaultServerIndex, serverId?: string): void`
|
|
24
|
+
- `InsertServer(serverConfig: OpenAPIV3.ServerObject, index: number, serverId?: string, config: OpenAPIV3.Document = this.Config!): void`
|
|
25
|
+
- `Load(openApiUrl: string = 'openapi.json'): Promise<void>` — Used to load the app open api config from a remote resource. Promise.all(\[ OpenApiDataSourceLoader.Load() \]) .then(() =\> platformBrowserDynamic().bootstrapModule(AppModule)) .catch(err =\> console.error(err))
|
|
26
|
+
|
|
27
|
+
## Classes
|
|
28
|
+
|
|
29
|
+
### OpenApiHttpResponseError
|
|
30
|
+
|
|
31
|
+
File: `src/lib/open-api-http-response.error.ts`
|
|
32
|
+
Extends: `HttpErrorResponse`
|
|
33
|
+
|
|
34
|
+
Properties:
|
|
35
|
+
- `httpErrorResponse: HttpErrorResponse`
|
|
36
|
+
- `metadata: OpenApiMetaData`
|
|
37
|
+
|
|
38
|
+
### RxapOpenApiError
|
|
39
|
+
|
|
40
|
+
File: `src/lib/error.ts`
|
|
41
|
+
Extends: `RxapError`
|
|
42
|
+
|
|
43
|
+
### SchemaValidationMixin
|
|
44
|
+
|
|
45
|
+
File: `src/lib/schema-validation.mixin.ts`
|
|
46
|
+
|
|
47
|
+
Properties:
|
|
48
|
+
- `disableSchemaValidation?: boolean`
|
|
49
|
+
- `STRICT: unknown = false`
|
|
50
|
+
|
|
51
|
+
Methods:
|
|
52
|
+
- `buildHttpHeaders(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): HttpHeaders`
|
|
53
|
+
- `buildHttpOptions(operation: OperationObjectWithMetadata, parameters?: Parameters, requestBody?: RequestBody, ignoreUndefined: unknown = true): HttpRemoteMethodParameter` — Converts open api parameters into the corresponding http options to create a http request. The transformation is guided by the openapi definition
|
|
54
|
+
- `buildHttpParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters, ignoreUndefined: unknown = true): HttpParams`
|
|
55
|
+
- `buildHttpPathParams(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): Record<string, string>`
|
|
56
|
+
- `normalizePathParamValue(value: any, paramName: string): string`
|
|
57
|
+
- `validateParameters(operation: OperationObjectWithMetadata, parameters?: Parameters, strict: unknown = false): void` — Validates the parameters against the schema specified in the operation object
|
|
58
|
+
- `validateRequestBody(operation: OperationObjectWithMetadata, body?: RequestBody, strict: unknown = false): void`
|
|
59
|
+
- `validateResponse(operation: OperationObjectWithMetadata, response: SchemaValidationResponse<Response>, strict: unknown = false): void` — Validates the http response against the schema specified in the operation object
|
|
60
|
+
- `validationError(message: string, strict: boolean, schema?: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject, value?: any): void`
|
|
61
|
+
|
|
62
|
+
## Interfaces
|
|
63
|
+
|
|
64
|
+
### OpenApiInitOptions
|
|
65
|
+
|
|
66
|
+
File: `src/lib/open-api-init.ts`
|
|
67
|
+
|
|
68
|
+
Properties:
|
|
69
|
+
- `load?: literal type | boolean` — true - load the open api config file from the default url default url: openapi.json
|
|
70
|
+
- `origin?: string` — The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
|
|
71
|
+
|
|
72
|
+
### OpenApiMetaData
|
|
73
|
+
|
|
74
|
+
File: `src/lib/open-api.meta-data.ts`
|
|
75
|
+
Extends: `BaseRemoteMethodMetadata`
|
|
76
|
+
|
|
77
|
+
Properties:
|
|
78
|
+
- `id: string`
|
|
79
|
+
- `operation?: OperationObjectWithMetadata | string` — The operation object with path and method
|
|
80
|
+
- `serverId?: string` — used to specify the target server for the reset api operation
|
|
81
|
+
- `serverIndex?: number` — The index of the server object in the servers array in the open api config
|
|
82
|
+
|
|
83
|
+
### OperationObjectWithMetadata
|
|
84
|
+
|
|
85
|
+
File: `src/lib/open-api.ts`
|
|
86
|
+
Extends: `OpenAPIV3.OperationObject`
|
|
87
|
+
|
|
88
|
+
Properties:
|
|
89
|
+
- `method: string`
|
|
90
|
+
- `path: string`
|
|
91
|
+
|
|
92
|
+
### SchemaValidationResponse
|
|
93
|
+
|
|
94
|
+
File: `src/lib/schema-validation.mixin.ts`
|
|
95
|
+
|
|
96
|
+
Properties:
|
|
97
|
+
- `body?: Data | null`
|
|
98
|
+
- `data?: Data`
|
|
99
|
+
- `headers: HttpHeaders`
|
|
100
|
+
- `status: number`
|
|
101
|
+
|
|
102
|
+
## Public functions
|
|
103
|
+
|
|
104
|
+
- `AssertOpenApiV3(obj?: any): OpenAPIV3.Document`
|
|
105
|
+
Defined in `src/lib/utilities.ts`
|
|
106
|
+
- `getJsonContentSchema(data): OpenAPIV3.SchemaObject | null`
|
|
107
|
+
Defined in `src/lib/utilities.ts`
|
|
108
|
+
- `getJsonSchema(map: Record)`
|
|
109
|
+
Defined in `src/lib/utilities.ts`
|
|
110
|
+
- `hasJsonContentSchema(data): T & literal type`
|
|
111
|
+
Defined in `src/lib/utilities.ts`
|
|
112
|
+
- `hasJsonSchema(map)`
|
|
113
|
+
Defined in `src/lib/utilities.ts`
|
|
114
|
+
- `initGenerator(tree: Tree, options: InitGeneratorSchema)`
|
|
115
|
+
Defined in `src/generators/init/generator.ts`
|
|
116
|
+
- `IsOpenApiV3(obj?: any): OpenAPIV3.Document`
|
|
117
|
+
Defined in `src/lib/utilities.ts`
|
|
118
|
+
- `IsReferenceObject(obj?: any): OpenAPIV3.ReferenceObject`
|
|
119
|
+
Defined in `src/lib/utilities.ts`
|
|
120
|
+
- `NotContainsReferenceObjects(array?: Array): T[]`
|
|
121
|
+
Defined in `src/lib/utilities.ts`
|
|
122
|
+
- `OpenApiInit(environment: Environment, options: OpenApiInitOptions = {})`
|
|
123
|
+
Defined in `src/lib/open-api-init.ts`
|
|
124
|
+
|
|
125
|
+
## Public type aliases
|
|
126
|
+
|
|
127
|
+
- `type OperationMap = Map<string | OperationObjectWithMetadata>`
|
|
128
|
+
|
|
129
|
+
## Public variables
|
|
130
|
+
|
|
131
|
+
- `DEFAULT_OPEN_API_DATA_SOURCE_META_DATA: unknown = new InjectionToken('rxap/open-api/default-data-source-meta-data')`
|
|
132
|
+
Defined in `src/lib/tokens.ts`
|
|
133
|
+
- `DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA: unknown = new InjectionToken( 'rxap/open-api/default-remote-method-meta-data')`
|
|
134
|
+
Defined in `src/lib/tokens.ts`
|
|
135
|
+
- `DISABLE_SCHEMA_VALIDATION: unknown = new InjectionToken<boolean>('rxap/open-api/disable-schema-validation', { providedIn: 'root', factory: () => true, })`
|
|
136
|
+
Defined in `src/lib/tokens.ts`
|
|
137
|
+
- `DISABLE_VALIDATION: unknown = new InjectionToken<boolean>('rxap/open-api/disable-validation', { providedIn: 'root', factory: () => true, })`
|
|
138
|
+
Defined in `src/lib/tokens.ts`
|
|
139
|
+
- `injectOpenApiBaseUrlHttpInterceptorFn: HttpInterceptorFn = ( req, next ) => { const serverId = req.context.get(OPEN_API_SERVER_ID); const serverIndex = req.context.get(OPEN_API_SERVER_INDEX); const openApiConfigService …`
|
|
140
|
+
Defined in `src/lib/http-interceptors.ts`
|
|
141
|
+
- `OPEN_API_OPERATION: unknown = new HttpContextToken<string>(() => '')`
|
|
142
|
+
Defined in `src/lib/http-context-tokens.ts`
|
|
143
|
+
- `OPEN_API_OPERATION_ID: unknown = new HttpContextToken<string>(() => '')`
|
|
144
|
+
Defined in `src/lib/http-context-tokens.ts`
|
|
145
|
+
- `OPEN_API_SERVER_ID: unknown = new HttpContextToken<string | null>(() => null)`
|
|
146
|
+
Defined in `src/lib/http-context-tokens.ts`
|
|
147
|
+
- `OPEN_API_SERVER_INDEX: unknown = new HttpContextToken<number>(() => 0)`
|
|
148
|
+
Defined in `src/lib/http-context-tokens.ts`
|
|
149
|
+
- `RXAP_OPEN_API_CONFIG: unknown = new InjectionToken('rxap/open-api/config')`
|
|
150
|
+
Defined in `src/lib/tokens.ts`
|
|
151
|
+
- `RXAP_OPEN_API_STRICT_VALIDATOR: unknown = new InjectionToken('rxap/open-api/strict-validator')`
|
|
152
|
+
Defined in `src/lib/tokens.ts`
|
|
153
|
+
- `schematic: unknown = convertNxGenerator(generator)`
|
|
154
|
+
Defined in `src/generators/init/index.ts`
|