@scalar/openapi-parser 0.4.0 → 0.4.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 +6 -0
- package/dist/index.d.ts +17 -5
- package/dist/index.js +4466 -15763
- package/dist/webpack-stats.json +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { default as default_2 } from 'ajv-draft-04';
|
|
2
|
+
import { default as default_3 } from 'ajv/dist/2020';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* A queuable action for the pipeline
|
|
3
6
|
*/
|
|
@@ -158,6 +161,14 @@ export declare const isObject: (obj: any) => boolean;
|
|
|
158
161
|
|
|
159
162
|
export declare function isYaml(value: string): boolean;
|
|
160
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Configure available JSON Schema versions
|
|
166
|
+
*/
|
|
167
|
+
export declare const jsonSchemaVersions: {
|
|
168
|
+
'http://json-schema.org/draft-04/schema#': typeof default_2;
|
|
169
|
+
'https://json-schema.org/draft/2020-12/schema': typeof default_3;
|
|
170
|
+
};
|
|
171
|
+
|
|
161
172
|
export declare function load(value: any, options?: {
|
|
162
173
|
plugins?: LoadPlugin[];
|
|
163
174
|
filename?: string;
|
|
@@ -2048,9 +2059,6 @@ declare const OpenApiSpecifications: {
|
|
|
2048
2059
|
externalDocs: {
|
|
2049
2060
|
$ref: string;
|
|
2050
2061
|
};
|
|
2051
|
-
/**
|
|
2052
|
-
* Configure available JSON Schema versions
|
|
2053
|
-
*/
|
|
2054
2062
|
servers: {
|
|
2055
2063
|
type: string;
|
|
2056
2064
|
items: {
|
|
@@ -4544,6 +4552,7 @@ export declare namespace OpenAPIV2 {
|
|
|
4544
4552
|
name?: string;
|
|
4545
4553
|
description?: string;
|
|
4546
4554
|
externalDocs?: ExternalDocumentationObject;
|
|
4555
|
+
[key: string]: any;
|
|
4547
4556
|
}
|
|
4548
4557
|
export interface SecuritySchemeObjectBase {
|
|
4549
4558
|
type?: 'basic' | 'apiKey' | 'oauth2';
|
|
@@ -5056,9 +5065,10 @@ export declare namespace OpenAPIV3 {
|
|
|
5056
5065
|
openIdConnectUrl?: string;
|
|
5057
5066
|
}
|
|
5058
5067
|
export interface TagObject {
|
|
5059
|
-
|
|
5068
|
+
name?: string;
|
|
5060
5069
|
description?: string;
|
|
5061
5070
|
externalDocs?: ExternalDocumentationObject;
|
|
5071
|
+
[key: string]: any;
|
|
5062
5072
|
}
|
|
5063
5073
|
}
|
|
5064
5074
|
|
|
@@ -5651,9 +5661,10 @@ export declare namespace OpenAPIV3 {
|
|
|
5651
5661
|
openIdConnectUrl?: string;
|
|
5652
5662
|
}
|
|
5653
5663
|
interface TagObject {
|
|
5654
|
-
|
|
5664
|
+
name?: string;
|
|
5655
5665
|
description?: string;
|
|
5656
5666
|
externalDocs?: ExternalDocumentationObject;
|
|
5667
|
+
[key: string]: any;
|
|
5657
5668
|
}
|
|
5658
5669
|
}
|
|
5659
5670
|
|
|
@@ -5680,6 +5691,7 @@ export declare namespace OpenAPIV2 {
|
|
|
5680
5691
|
name?: string;
|
|
5681
5692
|
description?: string;
|
|
5682
5693
|
externalDocs?: ExternalDocumentationObject;
|
|
5694
|
+
[key: string]: any;
|
|
5683
5695
|
}
|
|
5684
5696
|
interface SecuritySchemeObjectBase {
|
|
5685
5697
|
type?: 'basic' | 'apiKey' | 'oauth2';
|