@swagger-api/apidom-ns-api-design-systems 1.0.0-beta.0 → 1.0.0-beta.10
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 +40 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/NOTICE +26 -0
- package/dist/apidom-ns-api-design-systems.browser.js +125 -3
- package/package.json +9 -9
- package/src/elements/Info.cjs +3 -0
- package/src/elements/Info.mjs +4 -0
- package/src/elements/Main.cjs +3 -0
- package/src/elements/Main.mjs +3 -0
- package/src/elements/Principle.cjs +3 -0
- package/src/elements/Principle.mjs +3 -0
- package/src/elements/Requirement.cjs +3 -0
- package/src/elements/Requirement.mjs +3 -0
- package/src/elements/RequirementLevel.cjs +3 -0
- package/src/elements/RequirementLevel.mjs +4 -0
- package/src/elements/Scenario.cjs +3 -0
- package/src/elements/Scenario.mjs +3 -0
- package/src/elements/Standard.cjs +3 -0
- package/src/elements/Standard.mjs +3 -0
- package/src/elements/StandardIdentifier.cjs +3 -0
- package/src/elements/StandardIdentifier.mjs +4 -0
- package/src/index.mjs +2 -1
- package/src/media-types.cjs +11 -0
- package/src/media-types.mjs +12 -0
- package/src/namespace.cjs +3 -0
- package/src/namespace.mjs +3 -0
- package/src/predicates.cjs +31 -0
- package/src/predicates.mjs +31 -0
- package/src/refractor/plugins/openapi-3-1/standard-identifier-accessors.cjs +3 -0
- package/src/refractor/plugins/openapi-3-1/standard-identifier-accessors.mjs +4 -0
- package/src/refractor/plugins/openapi-3-1/standard-identifier-selectors.cjs +3 -0
- package/src/refractor/plugins/openapi-3-1/standard-identifier-selectors.mjs +4 -0
- package/src/refractor/specification.cjs +1 -0
- package/src/refractor/specification.mjs +1 -0
- package/src/refractor/visitors/FallbackVisitor.cjs +3 -0
- package/src/refractor/visitors/FallbackVisitor.mjs +3 -0
- package/src/refractor/visitors/SpecificationVisitor.cjs +4 -0
- package/src/refractor/visitors/SpecificationVisitor.mjs +4 -0
- package/src/refractor/visitors/Visitor.cjs +7 -0
- package/src/refractor/visitors/Visitor.mjs +8 -0
- package/src/refractor/visitors/api-design-systems/info/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/info/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/main/PrinciplesVisitor.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/main/PrinciplesVisitor.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/main/ScenariosVisitor.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/main/ScenariosVisitor.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/main/StandardsVisitor.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/main/StandardsVisitor.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/main/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/main/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/principle/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/principle/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/requirement/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/requirement/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/requirement-level/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/requirement-level/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/scenario/ThenVisitor.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/scenario/ThenVisitor.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/scenario/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/scenario/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/standard/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/standard/index.mjs +6 -0
- package/src/refractor/visitors/api-design-systems/standard-identifier/index.cjs +7 -0
- package/src/refractor/visitors/api-design-systems/standard-identifier/index.mjs +6 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +11 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +9 -0
- package/src/traversal/visitor.cjs +7 -1
- package/src/traversal/visitor.mjs +7 -1
- package/src/validator/openapi-3-1/validator.cjs +4 -0
- package/src/validator/openapi-3-1/validator.mjs +4 -0
- package/types/apidom-ns-api-design-systems.d.ts +674 -0
- package/types/dist.d.ts +0 -422
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.10](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2025-01-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.9](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2025-01-23)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
13
|
+
|
|
14
|
+
# [1.0.0-beta.8](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2025-01-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
17
|
+
|
|
18
|
+
# [1.0.0-beta.7](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2025-01-21)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
21
|
+
|
|
22
|
+
# [1.0.0-beta.6](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2024-12-30)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
25
|
+
|
|
26
|
+
# [1.0.0-beta.5](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2024-12-16)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
29
|
+
|
|
30
|
+
# [1.0.0-beta.4](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2024-12-13)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
33
|
+
|
|
34
|
+
# [1.0.0-beta.3](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-11-25)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
37
|
+
|
|
38
|
+
# [1.0.0-beta.2](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-11-22)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
41
|
+
|
|
42
|
+
# [1.0.0-beta.1](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2024-11-22)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
45
|
+
|
|
6
46
|
# [1.0.0-beta.0](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.10...v1.0.0-beta.0) (2024-11-21)
|
|
7
47
|
|
|
8
48
|
**Note:** Version bump only for package @swagger-api/apidom-ns-api-design-systems
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
This Academic Free License (the "License") applies to any original work
|
|
2
|
+
of authorship (the "Original Work") whose owner (the "Licensor") has
|
|
3
|
+
placed the following licensing notice adjacent to the copyright notice
|
|
4
|
+
for the Original Work:
|
|
5
|
+
|
|
6
|
+
Licensed under the Academic Free License version 3.0
|
|
7
|
+
|
|
8
|
+
1) Grant of Copyright License. Licensor grants You a worldwide,
|
|
9
|
+
royalty-free, non-exclusive, sublicensable license, for the duration of
|
|
10
|
+
the copyright, to do the following:
|
|
11
|
+
|
|
12
|
+
a) to reproduce the Original Work in copies, either alone or as part of
|
|
13
|
+
a collective work;
|
|
14
|
+
|
|
15
|
+
b) to translate, adapt, alter, transform, modify, or arrange the
|
|
16
|
+
Original Work, thereby creating derivative works ("Derivative Works")
|
|
17
|
+
based upon the Original Work;
|
|
18
|
+
|
|
19
|
+
c) to distribute or communicate copies of the Original Work and
|
|
20
|
+
Derivative Works to the public, under any license of your choice that
|
|
21
|
+
does not contradict the terms and conditions, including Licensor's
|
|
22
|
+
reserved rights and remedies, in this Academic Free License;
|
|
23
|
+
|
|
24
|
+
d) to perform the Original Work publicly; and
|
|
25
|
+
|
|
26
|
+
e) to display the Original Work publicly.
|
|
27
|
+
|
|
28
|
+
2) Grant of Patent License. Licensor grants You a worldwide,
|
|
29
|
+
royalty-free, non-exclusive, sublicensable license, under patent claims
|
|
30
|
+
owned or controlled by the Licensor that are embodied in the Original
|
|
31
|
+
Work as furnished by the Licensor, for the duration of the patents, to
|
|
32
|
+
make, use, sell, offer for sale, have made, and import the Original Work
|
|
33
|
+
and Derivative Works.
|
|
34
|
+
|
|
35
|
+
3) Grant of Source Code License. The term "Source Code" means the
|
|
36
|
+
preferred form of the Original Work for making modifications to it
|
|
37
|
+
and all available documentation describing how to modify the Original
|
|
38
|
+
Work. Licensor agrees to provide a machine-readable copy of the Source
|
|
39
|
+
Code of the Original Work along with each copy of the Original Work
|
|
40
|
+
that Licensor distributes. Licensor reserves the right to satisfy this
|
|
41
|
+
obligation by placing a machine-readable copy of the Source Code in an
|
|
42
|
+
information repository reasonably calculated to permit inexpensive and
|
|
43
|
+
convenient access by You for as long as Licensor continues to distribute
|
|
44
|
+
the Original Work.
|
|
45
|
+
|
|
46
|
+
4) Exclusions From License Grant. Neither the names of Licensor, nor
|
|
47
|
+
the names of any contributors to the Original Work, nor any of their
|
|
48
|
+
trademarks or service marks, may be used to endorse or promote products
|
|
49
|
+
derived from this Original Work without express prior permission of the
|
|
50
|
+
Licensor. Except as expressly stated herein, nothing in this License
|
|
51
|
+
grants any license to Licensor's trademarks, copyrights, patents, trade
|
|
52
|
+
secrets or any other intellectual property. No patent license is granted
|
|
53
|
+
to make, use, sell, offer for sale, have made, or import embodiments
|
|
54
|
+
of any patent claims other than the licensed claims defined in Section
|
|
55
|
+
2. No license is granted to the trademarks of Licensor even if such
|
|
56
|
+
marks are included in the Original Work. Nothing in this License shall
|
|
57
|
+
be interpreted to prohibit Licensor from licensing under terms different
|
|
58
|
+
from this License any Original Work that Licensor otherwise would have a
|
|
59
|
+
right to license.
|
|
60
|
+
|
|
61
|
+
5) External Deployment. The term "External Deployment" means the use,
|
|
62
|
+
distribution, or communication of the Original Work or Derivative
|
|
63
|
+
Works in any way such that the Original Work or Derivative Works may
|
|
64
|
+
be used by anyone other than You, whether those works are distributed
|
|
65
|
+
or communicated to those persons or made available as an application
|
|
66
|
+
intended for use over a network. As an express condition for the grants
|
|
67
|
+
of license hereunder, You must treat any External Deployment by You of
|
|
68
|
+
the Original Work or a Derivative Work as a distribution under section
|
|
69
|
+
1(c).
|
|
70
|
+
|
|
71
|
+
6) Attribution Rights. You must retain, in the Source Code of any
|
|
72
|
+
Derivative Works that You create, all copyright, patent, or trademark
|
|
73
|
+
notices from the Source Code of the Original Work, as well as any
|
|
74
|
+
notices of licensing and any descriptive text identified therein as an
|
|
75
|
+
"Attribution Notice." You must cause the Source Code for any Derivative
|
|
76
|
+
Works that You create to carry a prominent Attribution Notice reasonably
|
|
77
|
+
calculated to inform recipients that You have modified the Original
|
|
78
|
+
Work.
|
|
79
|
+
|
|
80
|
+
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
|
|
81
|
+
that the copyright in and to the Original Work and the patent rights
|
|
82
|
+
granted herein by Licensor are owned by the Licensor or are sublicensed
|
|
83
|
+
to You under the terms of this License with the permission of the
|
|
84
|
+
contributor(s) of those copyrights and patent rights. Except as
|
|
85
|
+
expressly stated in the immediately preceding sentence, the Original
|
|
86
|
+
Work is provided under this License on an "AS IS" BASIS and WITHOUT
|
|
87
|
+
WARRANTY, either express or implied, including, without limitation,
|
|
88
|
+
the warranties of non-infringement, merchantability or fitness for a
|
|
89
|
+
particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
|
|
90
|
+
WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
|
|
91
|
+
part of this License. No license to the Original Work is granted by this
|
|
92
|
+
License except under this disclaimer.
|
|
93
|
+
|
|
94
|
+
8) Limitation of Liability. Under no circumstances and under no legal
|
|
95
|
+
theory, whether in tort (including negligence), contract, or otherwise,
|
|
96
|
+
shall the Licensor be liable to anyone for any indirect, special,
|
|
97
|
+
incidental, or consequential damages of any character arising as a
|
|
98
|
+
result of this License or the use of the Original Work including,
|
|
99
|
+
without limitation, damages for loss of goodwill, work stoppage,
|
|
100
|
+
computer failure or malfunction, or any and all other commercial damages
|
|
101
|
+
or losses. This limitation of liability shall not apply to the extent
|
|
102
|
+
applicable law prohibits such limitation.
|
|
103
|
+
|
|
104
|
+
9) Acceptance and Termination. If, at any time, You expressly
|
|
105
|
+
assented to this License, that assent indicates your clear and
|
|
106
|
+
irrevocable acceptance of this License and all of its terms and
|
|
107
|
+
conditions. If You distribute or communicate copies of the Original
|
|
108
|
+
Work or a Derivative Work, You must make a reasonable effort under the
|
|
109
|
+
circumstances to obtain the express assent of recipients to the terms
|
|
110
|
+
of this License. This License conditions your rights to undertake
|
|
111
|
+
the activities listed in Section 1, including your right to create
|
|
112
|
+
Derivative Works based upon the Original Work, and doing so without
|
|
113
|
+
honoring these terms and conditions is prohibited by copyright law and
|
|
114
|
+
international treaty. Nothing in this License is intended to affect
|
|
115
|
+
copyright exceptions and limitations (including "fair use" or "fair
|
|
116
|
+
dealing"). This License shall terminate immediately and You may no
|
|
117
|
+
longer exercise any of the rights granted to You by this License upon
|
|
118
|
+
your failure to honor the conditions in Section 1(c).
|
|
119
|
+
|
|
120
|
+
10) Termination for Patent Action. This License shall terminate
|
|
121
|
+
automatically and You may no longer exercise any of the rights granted
|
|
122
|
+
to You by this License as of the date You commence an action, including
|
|
123
|
+
a cross-claim or counterclaim, against Licensor or any licensee
|
|
124
|
+
alleging that the Original Work infringes a patent. This termination
|
|
125
|
+
provision shall not apply for an action alleging patent infringement by
|
|
126
|
+
combinations of the Original Work with other software or hardware.
|
|
127
|
+
|
|
128
|
+
11) Jurisdiction, Venue and Governing Law. Any action or suit relating
|
|
129
|
+
to this License may be brought only in the courts of a jurisdiction
|
|
130
|
+
wherein the Licensor resides or in which Licensor conducts its primary
|
|
131
|
+
business, and under the laws of that jurisdiction excluding its
|
|
132
|
+
conflict-of-law provisions. The application of the United Nations
|
|
133
|
+
Convention on Contracts for the International Sale of Goods is
|
|
134
|
+
expressly excluded. Any use of the Original Work outside the scope
|
|
135
|
+
of this License or after its termination shall be subject to the
|
|
136
|
+
requirements and penalties of copyright or patent law in the appropriate
|
|
137
|
+
jurisdiction. This section shall survive the termination of this
|
|
138
|
+
License.
|
|
139
|
+
|
|
140
|
+
12) Attorneys' Fees. In any action to enforce the terms of this License
|
|
141
|
+
or seeking damages relating thereto, the prevailing party shall
|
|
142
|
+
be entitled to recover its costs and expenses, including, without
|
|
143
|
+
limitation, reasonable attorneys' fees and costs incurred in connection
|
|
144
|
+
with such action, including any appeal of such action. This section
|
|
145
|
+
shall survive the termination of this License.
|
|
146
|
+
|
|
147
|
+
13) Miscellaneous. If any provision of this License is held to be
|
|
148
|
+
unenforceable, such provision shall be reformed only to the extent
|
|
149
|
+
necessary to make it enforceable.
|
|
150
|
+
|
|
151
|
+
14) Definition of "You" in This License. "You" throughout this License,
|
|
152
|
+
whether in upper or lower case, means an individual or a legal entity
|
|
153
|
+
exercising rights under, and complying with all of the terms of, this
|
|
154
|
+
License. For legal entities, "You" includes any entity that controls,
|
|
155
|
+
is controlled by, or is under common control with you. For purposes of
|
|
156
|
+
this definition, "control" means (i) the power, direct or indirect, to
|
|
157
|
+
cause the direction or management of such entity, whether by contract
|
|
158
|
+
or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
159
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
160
|
+
|
|
161
|
+
15) Right to Use. You may use the Original Work in all ways not
|
|
162
|
+
otherwise restricted or conditioned by this License or by law, and
|
|
163
|
+
Licensor promises not to interfere with or be responsible for such uses
|
|
164
|
+
by You.
|
|
165
|
+
|
|
166
|
+
16) Modification of This License. This License is Copyright ©
|
|
167
|
+
2005 Lawrence Rosen. Permission is granted to copy, distribute, or
|
|
168
|
+
communicate this License without modification. Nothing in this License
|
|
169
|
+
permits You to modify this License as applied to the Original Work or
|
|
170
|
+
to Derivative Works. However, You may modify the text of this License
|
|
171
|
+
and copy, distribute or communicate your modified version (the "Modified
|
|
172
|
+
License") and apply it to other original works of authorship subject
|
|
173
|
+
to the following conditions: (i) You may not indicate in any way that
|
|
174
|
+
your Modified License is the "Academic Free License" or "AFL" and you
|
|
175
|
+
may not use those names in the name of your Modified License; (ii) You
|
|
176
|
+
must replace the notice specified in the first paragraph above with
|
|
177
|
+
the notice "Licensed under <insert your license name here>" or with a
|
|
178
|
+
notice of your own that is not confusingly similar to the notice in
|
|
179
|
+
this License; and (iii) You may not claim that your original works are
|
|
180
|
+
open source software unless your Modified License has been approved by
|
|
181
|
+
Open Source Initiative (OSI) and You comply with its license review and
|
|
182
|
+
certification process.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Redistribution and use in source and binary forms, with or without
|
|
2
|
+
modification, are permitted provided that the following conditions are
|
|
3
|
+
met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright
|
|
6
|
+
notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
|
10
|
+
documentation and/or other materials provided with the distribution.
|
|
11
|
+
|
|
12
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
13
|
+
contributors may be used to endorse or promote products derived from
|
|
14
|
+
this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
20
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
21
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
22
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
23
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
24
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
25
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/NOTICE
CHANGED
|
@@ -47,6 +47,32 @@ Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
|
47
47
|
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
48
48
|
All modifications are licensed under Apache 2.0 License.
|
|
49
49
|
|
|
50
|
+
OpenAPI Specification 2.0
|
|
51
|
+
Copyright The Linux Foundation
|
|
52
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
53
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
54
|
+
|
|
55
|
+
OpenAPI Specification 3.0.x
|
|
56
|
+
Copyright The Linux Foundation
|
|
57
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
58
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
59
|
+
|
|
60
|
+
OpenAPI Specification 3.1.x
|
|
61
|
+
Copyright The Linux Foundation
|
|
62
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
63
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
64
|
+
|
|
65
|
+
AsyncAPI Specification 2.x / AsyncAPI Initiative
|
|
66
|
+
Copyright The Linux Foundation
|
|
67
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/asyncapi.
|
|
68
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
69
|
+
|
|
70
|
+
JSON Schema Specification (Draft 4/5 -> 2020-12)
|
|
71
|
+
Copyright (c) 2022 JSON Schema Specification Authors
|
|
72
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/common.
|
|
73
|
+
Copy of the BSD 3-Clause "New" or "Revised" License can be found in `LICENSES/BSD-3-Clause.txt` file.
|
|
74
|
+
Copy of the Academic Free License v3.0 can be found in `LICENSES/AFL-3.0.txt` file.
|
|
75
|
+
|
|
50
76
|
---
|
|
51
77
|
|
|
52
78
|
If the SPDX-FileCopyrightText and SPDX-License-Identifier tags are not present in the file,
|
|
@@ -21,6 +21,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21
21
|
/* harmony export */ });
|
|
22
22
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
24
28
|
class Info extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
25
29
|
constructor(content, meta, attributes) {
|
|
26
30
|
super(content, meta, attributes);
|
|
@@ -53,6 +57,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53
57
|
/* harmony export */ });
|
|
54
58
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
55
59
|
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
56
63
|
class Main extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
57
64
|
constructor(content, meta, attributes) {
|
|
58
65
|
super(content, meta, attributes);
|
|
@@ -104,6 +111,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104
111
|
/* harmony export */ });
|
|
105
112
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
106
113
|
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
107
117
|
class Principle extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
108
118
|
constructor(content, meta, attributes) {
|
|
109
119
|
super(content, meta, attributes);
|
|
@@ -148,6 +158,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
148
158
|
/* harmony export */ });
|
|
149
159
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
150
160
|
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
151
164
|
class Requirement extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
152
165
|
constructor(content, meta, attributes) {
|
|
153
166
|
super(content, meta, attributes);
|
|
@@ -192,6 +205,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
192
205
|
/* harmony export */ });
|
|
193
206
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
194
207
|
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
195
212
|
class RequirementLevel extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.StringElement {
|
|
196
213
|
constructor(content, meta, attributes) {
|
|
197
214
|
super(content, meta, attributes);
|
|
@@ -212,6 +229,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
212
229
|
/* harmony export */ });
|
|
213
230
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
214
231
|
|
|
232
|
+
/**
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
215
235
|
class Scenario extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
216
236
|
constructor(content, meta, attributes) {
|
|
217
237
|
super(content, meta, attributes);
|
|
@@ -250,6 +270,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
250
270
|
/* harmony export */ });
|
|
251
271
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
252
272
|
|
|
273
|
+
/**
|
|
274
|
+
* @public
|
|
275
|
+
*/
|
|
253
276
|
class Standard extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ObjectElement {
|
|
254
277
|
constructor(content, meta, attributes) {
|
|
255
278
|
super(content, meta, attributes);
|
|
@@ -294,6 +317,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
294
317
|
/* harmony export */ });
|
|
295
318
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1339);
|
|
296
319
|
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
*/
|
|
297
324
|
class StandardIdentifier extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
298
325
|
constructor(content, meta, attributes) {
|
|
299
326
|
super(content, meta, attributes);
|
|
@@ -317,6 +344,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
317
344
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2275);
|
|
318
345
|
|
|
319
346
|
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
320
355
|
class ApiDesignSystemsMediaTypes extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
321
356
|
filterByFormat(format = 'generic') {
|
|
322
357
|
const effectiveFormat = format === 'generic' ? 'apidesignsystems;version' : format;
|
|
@@ -331,6 +366,10 @@ class ApiDesignSystemsMediaTypes extends _swagger_api_apidom_core__WEBPACK_IMPOR
|
|
|
331
366
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.filterByFormat(format));
|
|
332
367
|
}
|
|
333
368
|
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @public
|
|
372
|
+
*/
|
|
334
373
|
const mediaTypes = new ApiDesignSystemsMediaTypes('application/vnd.aai.apidesignsystems;version=2021-05-07', 'application/vnd.aai.apidesignsystems+json;version=2021-05-07', 'application/vnd.aai.apidesignsystems+yaml;version=2021-05-07');
|
|
335
374
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
|
|
336
375
|
|
|
@@ -363,6 +402,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
363
402
|
|
|
364
403
|
|
|
365
404
|
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
366
409
|
const apiDesignSystems = {
|
|
367
410
|
namespace: options => {
|
|
368
411
|
const {
|
|
@@ -420,6 +463,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
420
463
|
|
|
421
464
|
|
|
422
465
|
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
423
470
|
const isMainElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
424
471
|
hasBasicElementProps,
|
|
425
472
|
isElementType,
|
|
@@ -427,6 +474,10 @@ const isMainElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["
|
|
|
427
474
|
}) => {
|
|
428
475
|
return element => element instanceof _elements_Main_ts__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('main', element) && primitiveEq('object', element);
|
|
429
476
|
});
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @public
|
|
480
|
+
*/
|
|
430
481
|
const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
431
482
|
hasBasicElementProps,
|
|
432
483
|
isElementType,
|
|
@@ -434,6 +485,10 @@ const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["
|
|
|
434
485
|
}) => {
|
|
435
486
|
return element => element instanceof _elements_Info_ts__WEBPACK_IMPORTED_MODULE_2__["default"] || hasBasicElementProps(element) && isElementType('info', element) && primitiveEq('object', element);
|
|
436
487
|
});
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @public
|
|
491
|
+
*/
|
|
437
492
|
const isPrincipleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
438
493
|
hasBasicElementProps,
|
|
439
494
|
isElementType,
|
|
@@ -441,6 +496,10 @@ const isPrincipleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_
|
|
|
441
496
|
}) => {
|
|
442
497
|
return element => element instanceof _elements_Principle_ts__WEBPACK_IMPORTED_MODULE_3__["default"] || hasBasicElementProps(element) && isElementType('principle', element) && primitiveEq('object', element);
|
|
443
498
|
});
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
444
503
|
const isRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
445
504
|
hasBasicElementProps,
|
|
446
505
|
isElementType,
|
|
@@ -448,6 +507,10 @@ const isRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODUL
|
|
|
448
507
|
}) => {
|
|
449
508
|
return element => element instanceof _elements_Requirement_ts__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('requirement', element) && primitiveEq('object', element);
|
|
450
509
|
});
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
451
514
|
const isRequirementLevelElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
452
515
|
hasBasicElementProps,
|
|
453
516
|
isElementType,
|
|
@@ -455,6 +518,10 @@ const isRequirementLevelElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_
|
|
|
455
518
|
}) => {
|
|
456
519
|
return element => element instanceof _elements_RequirementLevel_ts__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('requirementLevel', element) && primitiveEq('string', element);
|
|
457
520
|
});
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @public
|
|
524
|
+
*/
|
|
458
525
|
const isScenarioElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
459
526
|
hasBasicElementProps,
|
|
460
527
|
isElementType,
|
|
@@ -462,6 +529,10 @@ const isScenarioElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0
|
|
|
462
529
|
}) => {
|
|
463
530
|
return element => element instanceof _elements_Scenario_ts__WEBPACK_IMPORTED_MODULE_6__["default"] || hasBasicElementProps(element) && isElementType('scenario', element) && primitiveEq('object', element);
|
|
464
531
|
});
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @public
|
|
535
|
+
*/
|
|
465
536
|
const isStandardElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
466
537
|
hasBasicElementProps,
|
|
467
538
|
isElementType,
|
|
@@ -469,6 +540,10 @@ const isStandardElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0
|
|
|
469
540
|
}) => {
|
|
470
541
|
return element => element instanceof _elements_Standard_ts__WEBPACK_IMPORTED_MODULE_7__["default"] || hasBasicElementProps(element) && isElementType('standard', element) && primitiveEq('object', element);
|
|
471
542
|
});
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @public
|
|
546
|
+
*/
|
|
472
547
|
const isStandardIdentifierElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
473
548
|
hasBasicElementProps,
|
|
474
549
|
isElementType,
|
|
@@ -493,6 +568,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
493
568
|
/* harmony import */ var _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(726);
|
|
494
569
|
|
|
495
570
|
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* @public
|
|
574
|
+
*/
|
|
496
575
|
const plugin = () => () => {
|
|
497
576
|
return {
|
|
498
577
|
visitor: {
|
|
@@ -585,6 +664,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
585
664
|
/* harmony import */ var _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(726);
|
|
586
665
|
|
|
587
666
|
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @public
|
|
670
|
+
*/
|
|
588
671
|
const plugin = () => () => {
|
|
589
672
|
let operationIdentifiers = [];
|
|
590
673
|
let responseIdentifiers = [];
|
|
@@ -678,6 +761,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
678
761
|
* this Element as current element.
|
|
679
762
|
*/
|
|
680
763
|
|
|
764
|
+
/**
|
|
765
|
+
* @public
|
|
766
|
+
*/
|
|
681
767
|
class FallbackVisitor extends _Visitor_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
682
768
|
enter(element) {
|
|
683
769
|
this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(element);
|
|
@@ -713,8 +799,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
713
799
|
/**
|
|
714
800
|
* This is a base class for every visitor that does
|
|
715
801
|
* internal look-ups to retrieve other child visitors.
|
|
802
|
+
* @public
|
|
716
803
|
*/
|
|
717
804
|
|
|
805
|
+
/**
|
|
806
|
+
* @public
|
|
807
|
+
*/
|
|
718
808
|
class SpecificationVisitor extends _Visitor_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
719
809
|
specObj;
|
|
720
810
|
passingOptionsNames = ['specObj'];
|
|
@@ -784,6 +874,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
784
874
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8400);
|
|
785
875
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(726);
|
|
786
876
|
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* @public
|
|
880
|
+
*/
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* @public
|
|
884
|
+
*/
|
|
787
885
|
class Visitor {
|
|
788
886
|
element;
|
|
789
887
|
constructor(options = {}) {
|
|
@@ -825,6 +923,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
825
923
|
/* harmony import */ var _SpecificationVisitor_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8863);
|
|
826
924
|
|
|
827
925
|
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* @public
|
|
929
|
+
*/
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @public
|
|
933
|
+
*/
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* @public
|
|
937
|
+
*/
|
|
828
938
|
class FixedFieldsVisitor extends _SpecificationVisitor_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
829
939
|
specPath;
|
|
830
940
|
ignoredFields;
|
|
@@ -876,13 +986,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
876
986
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7258);
|
|
877
987
|
|
|
878
988
|
|
|
879
|
-
|
|
989
|
+
/**
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
880
992
|
const getNodeType = element => {
|
|
881
993
|
if (!(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.isElement)(element)) {
|
|
882
994
|
return undefined;
|
|
883
995
|
}
|
|
884
996
|
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
|
|
885
997
|
};
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @public
|
|
1001
|
+
*/
|
|
886
1002
|
const keyMap = {
|
|
887
1003
|
/**
|
|
888
1004
|
* API Design Systems 2021-05-07 specification elements.
|
|
@@ -1092,6 +1208,10 @@ const validateScenario = (scenario, openApiElement) => {
|
|
|
1092
1208
|
});
|
|
1093
1209
|
return annotations;
|
|
1094
1210
|
};
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1095
1215
|
const validate = (mainElement, openApiElement) => {
|
|
1096
1216
|
const {
|
|
1097
1217
|
scenarios
|
|
@@ -16500,7 +16620,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16500
16620
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7258);
|
|
16501
16621
|
|
|
16502
16622
|
|
|
16503
|
-
|
|
16623
|
+
/**
|
|
16624
|
+
* @public
|
|
16625
|
+
*/
|
|
16504
16626
|
const getNodeType = element => {
|
|
16505
16627
|
if (!(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.isElement)(element)) {
|
|
16506
16628
|
return undefined;
|
|
@@ -16516,6 +16638,7 @@ const getNodeType = element => {
|
|
|
16516
16638
|
*
|
|
16517
16639
|
* To be 100% sure that currently visiting `LinkElement` is from this namespace
|
|
16518
16640
|
* use `isLinkElement` predicate from this namespace to assert for it.
|
|
16641
|
+
* @public
|
|
16519
16642
|
*/
|
|
16520
16643
|
|
|
16521
16644
|
const keyMap = {
|
|
@@ -16699,7 +16822,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16699
16822
|
/* harmony import */ var _refractor_registration_ts__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(7683);
|
|
16700
16823
|
|
|
16701
16824
|
|
|
16702
|
-
|
|
16703
16825
|
// eslint-disable-next-line no-restricted-exports
|
|
16704
16826
|
|
|
16705
16827
|
|