@skmtc/core 0.0.368 → 0.0.370
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/esm/context/GenerateContext.d.ts +79 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +113 -33
- package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
- package/esm/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.224.8/types.js +15 -0
- package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
- package/esm/oas/array/Array.d.ts +32 -8
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +60 -30
- package/esm/oas/boolean/Boolean.d.ts +24 -6
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +40 -24
- package/esm/oas/integer/Integer.d.ts +29 -8
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +57 -30
- package/esm/oas/number/Number.d.ts +24 -6
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +40 -24
- package/esm/oas/object/Object.d.ts +56 -12
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +52 -5
- package/esm/oas/string/String.d.ts +32 -8
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +63 -33
- package/esm/oas/union/Union.d.ts +38 -8
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +66 -30
- package/esm/oas/unknown/Unknown.d.ts +24 -5
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +34 -21
- package/esm/oas/void/Void.d.ts +22 -5
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +32 -21
- package/esm/server/createServer.d.ts.map +1 -1
- package/esm/server/createServer.js +9 -6
- package/package.json +1 -1
- package/script/context/GenerateContext.d.ts +79 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +113 -33
- package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
- package/script/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.224.8/types.js +18 -0
- package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
- package/script/oas/array/Array.d.ts +32 -8
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +60 -30
- package/script/oas/boolean/Boolean.d.ts +24 -6
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +40 -24
- package/script/oas/integer/Integer.d.ts +29 -8
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +57 -30
- package/script/oas/number/Number.d.ts +24 -6
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +40 -24
- package/script/oas/object/Object.d.ts +56 -12
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +52 -5
- package/script/oas/string/String.d.ts +32 -8
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +63 -33
- package/script/oas/union/Union.d.ts +38 -8
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +66 -30
- package/script/oas/unknown/Unknown.d.ts +24 -5
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +34 -21
- package/script/oas/void/Void.d.ts +22 -5
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +32 -21
- package/script/server/createServer.d.ts.map +1 -1
- package/script/server/createServer.js +9 -6
- package/esm/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.224.7/types.js +0 -3
- package/script/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.224.7/types.js +0 -4
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
|
@@ -7,16 +7,40 @@ export type ArrayFields = {
|
|
|
7
7
|
nullable?: boolean;
|
|
8
8
|
uniqueItems?: boolean;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Object representing an array in the OpenAPI Specification.
|
|
12
|
+
*/
|
|
10
13
|
export declare class OasArray {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Object is part the 'schema' set which is used
|
|
16
|
+
* to define data types in an OpenAPI document.
|
|
17
|
+
*/
|
|
18
|
+
oasType: "schema";
|
|
19
|
+
/**
|
|
20
|
+
* Constant value 'array' useful for type narrowing and tagged unions.
|
|
21
|
+
*/
|
|
22
|
+
type: "array";
|
|
23
|
+
/**
|
|
24
|
+
* Defines the type of items in the array.
|
|
25
|
+
*/
|
|
26
|
+
items: OasSchema | OasRef<'schema'>;
|
|
27
|
+
/**
|
|
28
|
+
* A short summary of the array.
|
|
29
|
+
*/
|
|
30
|
+
title: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* A description of the array.
|
|
33
|
+
*/
|
|
34
|
+
description: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates whether value can be null.
|
|
37
|
+
*/
|
|
38
|
+
nullable: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates whether the array items must be unique.
|
|
41
|
+
*/
|
|
42
|
+
uniqueItems: boolean | undefined;
|
|
14
43
|
constructor(fields: ArrayFields);
|
|
15
|
-
get items(): OasSchema | OasRef<'schema'>;
|
|
16
|
-
get title(): string | undefined;
|
|
17
|
-
get description(): string | undefined;
|
|
18
|
-
get nullable(): boolean | undefined;
|
|
19
|
-
get uniqueItems(): boolean | undefined;
|
|
20
44
|
isRef(): this is OasRef<'schema'>;
|
|
21
45
|
resolve(): OasArray;
|
|
22
46
|
resolveOnce(): OasArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/oas/array/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,qBAAa,QAAQ
|
|
1
|
+
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/oas/array/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,qBAAa,QAAQ;IACnB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,UAAmB;IACvB;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B;;OAEG;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;gBAEpB,MAAM,EAAE,WAAW;IAQ/B,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,QAAQ;IAInB,WAAW,IAAI,QAAQ;CAGxB"}
|
|
@@ -1,49 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _OasArray_fields;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OasArray = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Object representing an array in the OpenAPI Specification.
|
|
6
|
+
*/
|
|
16
7
|
class OasArray {
|
|
17
8
|
constructor(fields) {
|
|
9
|
+
/**
|
|
10
|
+
* Object is part the 'schema' set which is used
|
|
11
|
+
* to define data types in an OpenAPI document.
|
|
12
|
+
*/
|
|
18
13
|
Object.defineProperty(this, "oasType", {
|
|
19
14
|
enumerable: true,
|
|
20
15
|
configurable: true,
|
|
21
16
|
writable: true,
|
|
22
17
|
value: 'schema'
|
|
23
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Constant value 'array' useful for type narrowing and tagged unions.
|
|
21
|
+
*/
|
|
24
22
|
Object.defineProperty(this, "type", {
|
|
25
23
|
enumerable: true,
|
|
26
24
|
configurable: true,
|
|
27
25
|
writable: true,
|
|
28
26
|
value: 'array'
|
|
29
27
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Defines the type of items in the array.
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(this, "items", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: void 0
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* A short summary of the array.
|
|
39
|
+
*/
|
|
40
|
+
Object.defineProperty(this, "title", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: void 0
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* A description of the array.
|
|
48
|
+
*/
|
|
49
|
+
Object.defineProperty(this, "description", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Indicates whether value can be null.
|
|
57
|
+
*/
|
|
58
|
+
Object.defineProperty(this, "nullable", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: void 0
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Indicates whether the array items must be unique.
|
|
66
|
+
*/
|
|
67
|
+
Object.defineProperty(this, "uniqueItems", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true,
|
|
71
|
+
value: void 0
|
|
72
|
+
});
|
|
73
|
+
this.items = fields.items;
|
|
74
|
+
this.title = fields.title;
|
|
75
|
+
this.description = fields.description;
|
|
76
|
+
this.nullable = fields.nullable;
|
|
77
|
+
this.uniqueItems = fields.uniqueItems;
|
|
47
78
|
}
|
|
48
79
|
isRef() {
|
|
49
80
|
return false;
|
|
@@ -56,4 +87,3 @@ class OasArray {
|
|
|
56
87
|
}
|
|
57
88
|
}
|
|
58
89
|
exports.OasArray = OasArray;
|
|
59
|
-
_OasArray_fields = new WeakMap();
|
|
@@ -4,14 +4,32 @@ export type BooleanFields = {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
nullable?: boolean;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Object representing a boolean in the OpenAPI Specification.
|
|
9
|
+
*/
|
|
7
10
|
export declare class OasBoolean {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Object is part the 'schema' set which is used
|
|
13
|
+
* to define data types in an OpenAPI document.
|
|
14
|
+
*/
|
|
15
|
+
oasType: "schema";
|
|
16
|
+
/**
|
|
17
|
+
* Constant value 'boolean' useful for type narrowing and tagged unions.
|
|
18
|
+
*/
|
|
19
|
+
type: "boolean";
|
|
20
|
+
/**
|
|
21
|
+
* A short summary of the boolean.
|
|
22
|
+
*/
|
|
23
|
+
title: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A description of the boolean.
|
|
26
|
+
*/
|
|
27
|
+
description: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether value can be null.
|
|
30
|
+
*/
|
|
31
|
+
nullable: boolean | undefined;
|
|
11
32
|
constructor(fields: BooleanFields);
|
|
12
|
-
get title(): string | undefined;
|
|
13
|
-
get description(): string | undefined;
|
|
14
|
-
get nullable(): boolean | undefined;
|
|
15
33
|
isRef(): this is OasRef<'schema'>;
|
|
16
34
|
resolve(): OasBoolean;
|
|
17
35
|
resolveOnce(): OasBoolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/Boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,qBAAa,UAAU
|
|
1
|
+
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/Boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,qBAAa,UAAU;IACrB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,YAAqB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;gBAEjB,MAAM,EAAE,aAAa;IAMjC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,UAAU;IAIrB,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -1,43 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _OasBoolean_fields;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OasBoolean = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Object representing a boolean in the OpenAPI Specification.
|
|
6
|
+
*/
|
|
16
7
|
class OasBoolean {
|
|
17
8
|
constructor(fields) {
|
|
9
|
+
/**
|
|
10
|
+
* Object is part the 'schema' set which is used
|
|
11
|
+
* to define data types in an OpenAPI document.
|
|
12
|
+
*/
|
|
18
13
|
Object.defineProperty(this, "oasType", {
|
|
19
14
|
enumerable: true,
|
|
20
15
|
configurable: true,
|
|
21
16
|
writable: true,
|
|
22
17
|
value: 'schema'
|
|
23
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Constant value 'boolean' useful for type narrowing and tagged unions.
|
|
21
|
+
*/
|
|
24
22
|
Object.defineProperty(this, "type", {
|
|
25
23
|
enumerable: true,
|
|
26
24
|
configurable: true,
|
|
27
25
|
writable: true,
|
|
28
26
|
value: 'boolean'
|
|
29
27
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
/**
|
|
29
|
+
* A short summary of the boolean.
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(this, "title", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: void 0
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* A description of the boolean.
|
|
39
|
+
*/
|
|
40
|
+
Object.defineProperty(this, "description", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: void 0
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether value can be null.
|
|
48
|
+
*/
|
|
49
|
+
Object.defineProperty(this, "nullable", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
this.title = fields.title;
|
|
56
|
+
this.description = fields.description;
|
|
57
|
+
this.nullable = fields.nullable;
|
|
41
58
|
}
|
|
42
59
|
isRef() {
|
|
43
60
|
return false;
|
|
@@ -50,4 +67,3 @@ class OasBoolean {
|
|
|
50
67
|
}
|
|
51
68
|
}
|
|
52
69
|
exports.OasBoolean = OasBoolean;
|
|
53
|
-
_OasBoolean_fields = new WeakMap();
|
|
@@ -7,15 +7,36 @@ export type IntegerFields = {
|
|
|
7
7
|
enums?: number[];
|
|
8
8
|
};
|
|
9
9
|
export declare class OasInteger {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Object is part the 'schema' set which is used
|
|
12
|
+
* to define data types in an OpenAPI document.
|
|
13
|
+
*/
|
|
14
|
+
oasType: "schema";
|
|
15
|
+
/**
|
|
16
|
+
* Constant value 'integer' useful for type narrowing and tagged unions.
|
|
17
|
+
*/
|
|
18
|
+
type: "integer";
|
|
19
|
+
/**
|
|
20
|
+
* A short summary of the integer.
|
|
21
|
+
*/
|
|
22
|
+
title: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A description of the integer.
|
|
25
|
+
*/
|
|
26
|
+
description: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates whether value can be null.
|
|
29
|
+
*/
|
|
30
|
+
nullable: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The format of the integer.
|
|
33
|
+
*/
|
|
34
|
+
format: 'int32' | 'int64' | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* An array of allowed values for the integer.
|
|
37
|
+
*/
|
|
38
|
+
enums: number[] | undefined;
|
|
13
39
|
constructor(fields: IntegerFields);
|
|
14
|
-
get title(): string | undefined;
|
|
15
|
-
get description(): string | undefined;
|
|
16
|
-
get nullable(): boolean | undefined;
|
|
17
|
-
get format(): 'int32' | 'int64' | undefined;
|
|
18
|
-
get enums(): number[] | undefined;
|
|
19
40
|
isRef(): this is OasRef<'schema'>;
|
|
20
41
|
resolve(): OasInteger;
|
|
21
42
|
resolveOnce(): OasInteger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/Integer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,qBAAa,UAAU
|
|
1
|
+
{"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/Integer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,qBAAa,UAAU;IACrB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,YAAqB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;gBAEf,MAAM,EAAE,aAAa;IAQjC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,UAAU;IAIrB,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -1,49 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _OasInteger_fields;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OasInteger = void 0;
|
|
16
4
|
class OasInteger {
|
|
17
5
|
constructor(fields) {
|
|
6
|
+
/**
|
|
7
|
+
* Object is part the 'schema' set which is used
|
|
8
|
+
* to define data types in an OpenAPI document.
|
|
9
|
+
*/
|
|
18
10
|
Object.defineProperty(this, "oasType", {
|
|
19
11
|
enumerable: true,
|
|
20
12
|
configurable: true,
|
|
21
13
|
writable: true,
|
|
22
14
|
value: 'schema'
|
|
23
15
|
});
|
|
16
|
+
/**
|
|
17
|
+
* Constant value 'integer' useful for type narrowing and tagged unions.
|
|
18
|
+
*/
|
|
24
19
|
Object.defineProperty(this, "type", {
|
|
25
20
|
enumerable: true,
|
|
26
21
|
configurable: true,
|
|
27
22
|
writable: true,
|
|
28
23
|
value: 'integer'
|
|
29
24
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
25
|
+
/**
|
|
26
|
+
* A short summary of the integer.
|
|
27
|
+
*/
|
|
28
|
+
Object.defineProperty(this, "title", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* A description of the integer.
|
|
36
|
+
*/
|
|
37
|
+
Object.defineProperty(this, "description", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: void 0
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether value can be null.
|
|
45
|
+
*/
|
|
46
|
+
Object.defineProperty(this, "nullable", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: void 0
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* The format of the integer.
|
|
54
|
+
*/
|
|
55
|
+
Object.defineProperty(this, "format", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: void 0
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* An array of allowed values for the integer.
|
|
63
|
+
*/
|
|
64
|
+
Object.defineProperty(this, "enums", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
value: void 0
|
|
69
|
+
});
|
|
70
|
+
this.title = fields.title;
|
|
71
|
+
this.description = fields.description;
|
|
72
|
+
this.nullable = fields.nullable;
|
|
73
|
+
this.format = fields.format;
|
|
74
|
+
this.enums = fields.enums;
|
|
47
75
|
}
|
|
48
76
|
isRef() {
|
|
49
77
|
return false;
|
|
@@ -56,4 +84,3 @@ class OasInteger {
|
|
|
56
84
|
}
|
|
57
85
|
}
|
|
58
86
|
exports.OasInteger = OasInteger;
|
|
59
|
-
_OasInteger_fields = new WeakMap();
|
|
@@ -4,14 +4,32 @@ export type NumberFields = {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
nullable?: boolean;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Object representing a number in the OpenAPI Specification.
|
|
9
|
+
*/
|
|
7
10
|
export declare class OasNumber {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Object is part the 'schema' set which is used
|
|
13
|
+
* to define data types in an OpenAPI document.
|
|
14
|
+
*/
|
|
15
|
+
oasType: "schema";
|
|
16
|
+
/**
|
|
17
|
+
* Constant value 'number' useful for type narrowing and tagged unions.
|
|
18
|
+
*/
|
|
19
|
+
type: "number";
|
|
20
|
+
/**
|
|
21
|
+
* A short summary of the number.
|
|
22
|
+
*/
|
|
23
|
+
title: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A description of the number.
|
|
26
|
+
*/
|
|
27
|
+
description: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether value can be null.
|
|
30
|
+
*/
|
|
31
|
+
nullable: boolean | undefined;
|
|
11
32
|
constructor(fields: NumberFields);
|
|
12
|
-
get title(): string | undefined;
|
|
13
|
-
get description(): string | undefined;
|
|
14
|
-
get nullable(): boolean | undefined;
|
|
15
33
|
isRef(): this is OasRef<'schema'>;
|
|
16
34
|
resolve(): OasNumber;
|
|
17
35
|
resolveOnce(): OasNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,qBAAa,SAAS
|
|
1
|
+
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,WAAoB;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;gBAEjB,MAAM,EAAE,YAAY;IAMhC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;CAGzB"}
|
|
@@ -1,43 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _OasNumber_fields;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OasNumber = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Object representing a number in the OpenAPI Specification.
|
|
6
|
+
*/
|
|
16
7
|
class OasNumber {
|
|
17
8
|
constructor(fields) {
|
|
9
|
+
/**
|
|
10
|
+
* Object is part the 'schema' set which is used
|
|
11
|
+
* to define data types in an OpenAPI document.
|
|
12
|
+
*/
|
|
18
13
|
Object.defineProperty(this, "oasType", {
|
|
19
14
|
enumerable: true,
|
|
20
15
|
configurable: true,
|
|
21
16
|
writable: true,
|
|
22
17
|
value: 'schema'
|
|
23
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Constant value 'number' useful for type narrowing and tagged unions.
|
|
21
|
+
*/
|
|
24
22
|
Object.defineProperty(this, "type", {
|
|
25
23
|
enumerable: true,
|
|
26
24
|
configurable: true,
|
|
27
25
|
writable: true,
|
|
28
26
|
value: 'number'
|
|
29
27
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
/**
|
|
29
|
+
* A short summary of the number.
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(this, "title", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: void 0
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* A description of the number.
|
|
39
|
+
*/
|
|
40
|
+
Object.defineProperty(this, "description", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: void 0
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether value can be null.
|
|
48
|
+
*/
|
|
49
|
+
Object.defineProperty(this, "nullable", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
this.title = fields.title;
|
|
56
|
+
this.description = fields.description;
|
|
57
|
+
this.nullable = fields.nullable;
|
|
41
58
|
}
|
|
42
59
|
isRef() {
|
|
43
60
|
return false;
|
|
@@ -50,4 +67,3 @@ class OasNumber {
|
|
|
50
67
|
}
|
|
51
68
|
}
|
|
52
69
|
exports.OasNumber = OasNumber;
|
|
53
|
-
_OasNumber_fields = new WeakMap();
|