@extk/expressive 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/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,32 +41,32 @@ type NumericConfigs = {
|
|
|
41
41
|
exclusiveMaximum?: boolean;
|
|
42
42
|
multipleOf?: number;
|
|
43
43
|
};
|
|
44
|
-
type
|
|
44
|
+
type NumberSchema = {
|
|
45
45
|
type: 'number';
|
|
46
46
|
format?: 'float' | 'double';
|
|
47
47
|
} & NumericConfigs;
|
|
48
|
-
type
|
|
48
|
+
type IntegerSchema = {
|
|
49
49
|
type: 'integer';
|
|
50
50
|
format?: 'int32' | 'int64';
|
|
51
51
|
} & NumericConfigs;
|
|
52
|
-
type
|
|
52
|
+
type StringSchema = {
|
|
53
53
|
type: 'string';
|
|
54
54
|
minLength?: number;
|
|
55
55
|
maxLength?: number;
|
|
56
|
-
format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6';
|
|
56
|
+
format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6' | OtherString;
|
|
57
57
|
pattern?: string;
|
|
58
58
|
};
|
|
59
|
-
type
|
|
59
|
+
type BooleanSchema = {
|
|
60
60
|
type: 'boolean';
|
|
61
61
|
};
|
|
62
|
-
type
|
|
62
|
+
type ArraySchema = {
|
|
63
63
|
type: 'array';
|
|
64
64
|
items: Partial<Schema>;
|
|
65
65
|
minItems?: number;
|
|
66
66
|
maxItems?: number;
|
|
67
67
|
uniqueItems?: boolean;
|
|
68
68
|
};
|
|
69
|
-
type
|
|
69
|
+
type ObjectSchema = {
|
|
70
70
|
type: 'object';
|
|
71
71
|
properties?: Record<string, Schema>;
|
|
72
72
|
required?: string[];
|
|
@@ -79,16 +79,16 @@ type BaseSchema = ({
|
|
|
79
79
|
enum?: unknown[];
|
|
80
80
|
description?: string;
|
|
81
81
|
default?: unknown;
|
|
82
|
-
} & (
|
|
82
|
+
} & (StringSchema | NumberSchema | IntegerSchema | BooleanSchema | ArraySchema | ObjectSchema)) | {
|
|
83
83
|
$ref: string;
|
|
84
84
|
};
|
|
85
85
|
type Schema = BaseSchema | {
|
|
86
|
-
allOf:
|
|
86
|
+
allOf: Schema[];
|
|
87
87
|
} | {
|
|
88
|
-
anyOf:
|
|
88
|
+
anyOf: Schema[];
|
|
89
89
|
} | {
|
|
90
|
-
oneOf:
|
|
91
|
-
};
|
|
90
|
+
oneOf: Schema[];
|
|
91
|
+
} | unknown;
|
|
92
92
|
type Content = {
|
|
93
93
|
description?: string;
|
|
94
94
|
content?: Partial<Record<ContentType, {
|
package/dist/index.d.ts
CHANGED
|
@@ -41,32 +41,32 @@ type NumericConfigs = {
|
|
|
41
41
|
exclusiveMaximum?: boolean;
|
|
42
42
|
multipleOf?: number;
|
|
43
43
|
};
|
|
44
|
-
type
|
|
44
|
+
type NumberSchema = {
|
|
45
45
|
type: 'number';
|
|
46
46
|
format?: 'float' | 'double';
|
|
47
47
|
} & NumericConfigs;
|
|
48
|
-
type
|
|
48
|
+
type IntegerSchema = {
|
|
49
49
|
type: 'integer';
|
|
50
50
|
format?: 'int32' | 'int64';
|
|
51
51
|
} & NumericConfigs;
|
|
52
|
-
type
|
|
52
|
+
type StringSchema = {
|
|
53
53
|
type: 'string';
|
|
54
54
|
minLength?: number;
|
|
55
55
|
maxLength?: number;
|
|
56
|
-
format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6';
|
|
56
|
+
format?: 'date' | 'date-time' | 'password' | 'byte' | 'binary' | 'email' | 'uuid' | 'uri' | 'hostname' | 'ipv4' | 'ipv6' | OtherString;
|
|
57
57
|
pattern?: string;
|
|
58
58
|
};
|
|
59
|
-
type
|
|
59
|
+
type BooleanSchema = {
|
|
60
60
|
type: 'boolean';
|
|
61
61
|
};
|
|
62
|
-
type
|
|
62
|
+
type ArraySchema = {
|
|
63
63
|
type: 'array';
|
|
64
64
|
items: Partial<Schema>;
|
|
65
65
|
minItems?: number;
|
|
66
66
|
maxItems?: number;
|
|
67
67
|
uniqueItems?: boolean;
|
|
68
68
|
};
|
|
69
|
-
type
|
|
69
|
+
type ObjectSchema = {
|
|
70
70
|
type: 'object';
|
|
71
71
|
properties?: Record<string, Schema>;
|
|
72
72
|
required?: string[];
|
|
@@ -79,16 +79,16 @@ type BaseSchema = ({
|
|
|
79
79
|
enum?: unknown[];
|
|
80
80
|
description?: string;
|
|
81
81
|
default?: unknown;
|
|
82
|
-
} & (
|
|
82
|
+
} & (StringSchema | NumberSchema | IntegerSchema | BooleanSchema | ArraySchema | ObjectSchema)) | {
|
|
83
83
|
$ref: string;
|
|
84
84
|
};
|
|
85
85
|
type Schema = BaseSchema | {
|
|
86
|
-
allOf:
|
|
86
|
+
allOf: Schema[];
|
|
87
87
|
} | {
|
|
88
|
-
anyOf:
|
|
88
|
+
anyOf: Schema[];
|
|
89
89
|
} | {
|
|
90
|
-
oneOf:
|
|
91
|
-
};
|
|
90
|
+
oneOf: Schema[];
|
|
91
|
+
} | unknown;
|
|
92
92
|
type Content = {
|
|
93
93
|
description?: string;
|
|
94
94
|
content?: Partial<Record<ContentType, {
|