@openpkg-ts/spec 0.10.0 → 0.11.0
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.ts +0 -2
- package/dist/index.js +16 -3
- package/package.json +1 -1
- package/schemas/v0.3.0/openpkg.schema.json +16 -3
package/dist/index.d.ts
CHANGED
|
@@ -95,7 +95,6 @@ type SpecSchemaRef = {
|
|
|
95
95
|
};
|
|
96
96
|
type SpecSchemaFallback = {
|
|
97
97
|
type: string;
|
|
98
|
-
tsType?: string;
|
|
99
98
|
};
|
|
100
99
|
type SpecSchemaGeneric = Record<string, unknown>;
|
|
101
100
|
type SpecSchema = string | SpecSchemaPrimitive | SpecSchemaComposite | SpecSchemaCombinator | SpecSchemaRef | SpecSchemaFallback | SpecSchemaGeneric;
|
|
@@ -170,7 +169,6 @@ type SpecSignatureParameter = {
|
|
|
170
169
|
type SpecSignatureReturn = {
|
|
171
170
|
schema: SpecSchema;
|
|
172
171
|
description?: string;
|
|
173
|
-
tsType?: string;
|
|
174
172
|
};
|
|
175
173
|
type SpecSignature = {
|
|
176
174
|
parameters?: SpecSignatureParameter[];
|
package/dist/index.js
CHANGED
|
@@ -1855,16 +1855,18 @@ var openpkg_schema_default3 = {
|
|
|
1855
1855
|
]
|
|
1856
1856
|
},
|
|
1857
1857
|
schema: {
|
|
1858
|
-
description: "Flexible JSON Schema for type representation",
|
|
1858
|
+
description: "Flexible JSON Schema for type representation (supports Standard JSON Schema output)",
|
|
1859
1859
|
oneOf: [
|
|
1860
1860
|
{ type: "string" },
|
|
1861
1861
|
{ type: "boolean" },
|
|
1862
1862
|
{
|
|
1863
1863
|
type: "object",
|
|
1864
1864
|
properties: {
|
|
1865
|
+
$schema: { type: "string", description: "JSON Schema draft URI" },
|
|
1865
1866
|
type: { type: "string" },
|
|
1866
1867
|
format: { type: "string" },
|
|
1867
1868
|
enum: { type: "array" },
|
|
1869
|
+
const: { description: "Constant value" },
|
|
1868
1870
|
items: { $ref: "#/$defs/schema" },
|
|
1869
1871
|
prefixedItems: {
|
|
1870
1872
|
type: "array",
|
|
@@ -1877,7 +1879,10 @@ var openpkg_schema_default3 = {
|
|
|
1877
1879
|
},
|
|
1878
1880
|
required: { type: "array", items: { type: "string" } },
|
|
1879
1881
|
additionalProperties: {
|
|
1880
|
-
oneOf: [
|
|
1882
|
+
oneOf: [
|
|
1883
|
+
{ type: "boolean" },
|
|
1884
|
+
{ type: "object", additionalProperties: true }
|
|
1885
|
+
]
|
|
1881
1886
|
},
|
|
1882
1887
|
anyOf: { type: "array", items: { $ref: "#/$defs/schema" } },
|
|
1883
1888
|
allOf: { type: "array", items: { $ref: "#/$defs/schema" } },
|
|
@@ -1887,10 +1892,18 @@ var openpkg_schema_default3 = {
|
|
|
1887
1892
|
type: "object",
|
|
1888
1893
|
properties: { propertyName: { type: "string" } }
|
|
1889
1894
|
},
|
|
1890
|
-
tsType: { type: "string" },
|
|
1891
1895
|
description: { type: "string" },
|
|
1896
|
+
default: { description: "Default value for the schema" },
|
|
1897
|
+
minimum: { type: "number", description: "Minimum value for numbers" },
|
|
1898
|
+
maximum: { type: "number", description: "Maximum value for numbers" },
|
|
1899
|
+
exclusiveMinimum: { type: "number" },
|
|
1900
|
+
exclusiveMaximum: { type: "number" },
|
|
1901
|
+
minLength: { type: "integer", description: "Minimum string length" },
|
|
1902
|
+
maxLength: { type: "integer", description: "Maximum string length" },
|
|
1903
|
+
pattern: { type: "string", description: "Regex pattern for strings" },
|
|
1892
1904
|
minItems: { type: "integer" },
|
|
1893
1905
|
maxItems: { type: "integer" },
|
|
1906
|
+
uniqueItems: { type: "boolean" },
|
|
1894
1907
|
signatures: { type: "array", items: { $ref: "#/$defs/signature" } }
|
|
1895
1908
|
}
|
|
1896
1909
|
}
|
package/package.json
CHANGED
|
@@ -710,16 +710,18 @@
|
|
|
710
710
|
]
|
|
711
711
|
},
|
|
712
712
|
"schema": {
|
|
713
|
-
"description": "Flexible JSON Schema for type representation",
|
|
713
|
+
"description": "Flexible JSON Schema for type representation (supports Standard JSON Schema output)",
|
|
714
714
|
"oneOf": [
|
|
715
715
|
{ "type": "string" },
|
|
716
716
|
{ "type": "boolean" },
|
|
717
717
|
{
|
|
718
718
|
"type": "object",
|
|
719
719
|
"properties": {
|
|
720
|
+
"$schema": { "type": "string", "description": "JSON Schema draft URI" },
|
|
720
721
|
"type": { "type": "string" },
|
|
721
722
|
"format": { "type": "string" },
|
|
722
723
|
"enum": { "type": "array" },
|
|
724
|
+
"const": { "description": "Constant value" },
|
|
723
725
|
"items": { "$ref": "#/$defs/schema" },
|
|
724
726
|
"prefixedItems": {
|
|
725
727
|
"type": "array",
|
|
@@ -732,7 +734,10 @@
|
|
|
732
734
|
},
|
|
733
735
|
"required": { "type": "array", "items": { "type": "string" } },
|
|
734
736
|
"additionalProperties": {
|
|
735
|
-
"oneOf": [
|
|
737
|
+
"oneOf": [
|
|
738
|
+
{ "type": "boolean" },
|
|
739
|
+
{ "type": "object", "additionalProperties": true }
|
|
740
|
+
]
|
|
736
741
|
},
|
|
737
742
|
"anyOf": { "type": "array", "items": { "$ref": "#/$defs/schema" } },
|
|
738
743
|
"allOf": { "type": "array", "items": { "$ref": "#/$defs/schema" } },
|
|
@@ -742,10 +747,18 @@
|
|
|
742
747
|
"type": "object",
|
|
743
748
|
"properties": { "propertyName": { "type": "string" } }
|
|
744
749
|
},
|
|
745
|
-
"tsType": { "type": "string" },
|
|
746
750
|
"description": { "type": "string" },
|
|
751
|
+
"default": { "description": "Default value for the schema" },
|
|
752
|
+
"minimum": { "type": "number", "description": "Minimum value for numbers" },
|
|
753
|
+
"maximum": { "type": "number", "description": "Maximum value for numbers" },
|
|
754
|
+
"exclusiveMinimum": { "type": "number" },
|
|
755
|
+
"exclusiveMaximum": { "type": "number" },
|
|
756
|
+
"minLength": { "type": "integer", "description": "Minimum string length" },
|
|
757
|
+
"maxLength": { "type": "integer", "description": "Maximum string length" },
|
|
758
|
+
"pattern": { "type": "string", "description": "Regex pattern for strings" },
|
|
747
759
|
"minItems": { "type": "integer" },
|
|
748
760
|
"maxItems": { "type": "integer" },
|
|
761
|
+
"uniqueItems": { "type": "boolean" },
|
|
749
762
|
"signatures": { "type": "array", "items": { "$ref": "#/$defs/signature" } }
|
|
750
763
|
}
|
|
751
764
|
}
|