@@ -43,7 +43,12 @@ public static function resolverAugmentCases(): iterable
4343 'intrange ' => '{ "type": "integer", "maximum": 10, "minimum": -9223372036854775808, "property": "intRange" } ' ,
4444 'positiveint ' => '{ "type": "integer", "maximum": 9223372036854775807, "minimum": 1, "property": "positiveInt" } ' ,
4545 'nonzeroint ' => '{ "type": "integer", "not": { "enum": [ 0 ] }, "property": "nonZeroInt" } ' ,
46- 'arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
46+ 'legacy:arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
47+ 'type-info:arrayshape ' => '{ "type": "object", "additionalProperties": { "type": "boolean" }, "property": "arrayShape" } ' ,
48+ 'legacy:stringmap ' => '{ "type": "array", "items": { "type": "mixed" }, "property": "stringMap" } ' ,
49+ 'type-info:stringmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "stringMap" } ' ,
50+ 'legacy:intkeyedmap ' => '{ "type": "array", "items": { "type": "mixed" }, "property": "intKeyedMap" } ' ,
51+ 'type-info:intkeyedmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "intKeyedMap" } ' ,
4752 'uniontype ' => '{ "property": "unionType" } ' ,
4853 'promotedstring ' => '{ "type": "string", "property": "promotedString" } ' ,
4954 'legacy:mixedunion ' => '{ "example": "My value", "property": "mixedUnion" } ' ,
@@ -58,7 +63,7 @@ public static function resolverAugmentCases(): iterable
5863 'legacy:nullabletypedlistunion ' => '{ "nullable": true, "property": "nullableTypedListUnion" } ' ,
5964 'type-info:nullabletypedlistunion ' => '{ "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } ], "property": "nullableTypedListUnion" } ' ,
6065 'legacy:nullablenestedtypedlistunion ' => '{ "nullable": true, "property": "nullableNestedTypedListUnion" } ' ,
61- 'type-info:nullablenestedtypedlistunion ' => '{ "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "array ", "items ": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } } ], "property": "nullableNestedTypedListUnion" } ' ,
66+ 'type-info:nullablenestedtypedlistunion ' => '{ "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "object ", "additionalProperties ": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } } ], "property": "nullableNestedTypedListUnion" } ' ,
6267 'reflectionvalue ' => '{ "example": true, "nullable": true, "property": "reflectionValue" } ' ,
6368 'legacy:intersectionvar ' => '{ "property": "intersectionVar" } ' ,
6469 'type-info:intersectionvar ' => '{ "allOf": [ { "$ref": "#/components/schemas/FirstInterface" }, { "$ref": "#/components/schemas/SecondInterface" } ], "property": "intersectionVar" } ' ,
@@ -87,7 +92,12 @@ public static function resolverAugmentCases(): iterable
8792 'intrange ' => '{ "type": "integer", "maximum": 10, "minimum": -9223372036854775808, "property": "intRange" } ' ,
8893 'positiveint ' => '{ "type": "integer", "maximum": 9223372036854775807, "minimum": 1, "property": "positiveInt" } ' ,
8994 'nonzeroint ' => '{ "type": "integer", "not": { "const": 0 }, "property": "nonZeroInt" } ' ,
90- 'arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
95+ 'legacy:arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
96+ 'type-info:arrayshape ' => '{ "type": "object", "additionalProperties": { "type": "boolean" }, "property": "arrayShape" } ' ,
97+ 'legacy:stringmap ' => '{ "type": "array", "items": { "type": "mixed" }, "property": "stringMap" } ' ,
98+ 'type-info:stringmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "stringMap" } ' ,
99+ 'legacy:intkeyedmap ' => '{ "type": "array", "items": { "type": "mixed" }, "property": "intKeyedMap" } ' ,
100+ 'type-info:intkeyedmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "intKeyedMap" } ' ,
91101 'legacy:uniontype ' => '{ "property": "unionType" } ' ,
92102 'type-info:uniontype ' => '{ "type": [ "integer", "string" ], "property": "unionType" } ' ,
93103 'promotedstring ' => '{ "type": "string", "property": "promotedString" } ' ,
@@ -103,7 +113,7 @@ public static function resolverAugmentCases(): iterable
103113 'legacy:nullabletypedlistunion ' => '{ "property": "nullableTypedListUnion" } ' ,
104114 'type-info:nullabletypedlistunion ' => '{ "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "null" } ], "property": "nullableTypedListUnion" } ' ,
105115 'legacy:nullablenestedtypedlistunion ' => '{ "property": "nullableNestedTypedListUnion" } ' ,
106- 'type-info:nullablenestedtypedlistunion ' => '{ "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "array ", "items ": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } }, { "type": "null" } ], "property": "nullableNestedTypedListUnion" } ' ,
116+ 'type-info:nullablenestedtypedlistunion ' => '{ "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "object ", "additionalProperties ": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } }, { "type": "null" } ], "property": "nullableNestedTypedListUnion" } ' ,
107117 'legacy:reflectionvalue ' => '{ "example": true, "property": "reflectionValue" } ' ,
108118 'type-info:reflectionvalue ' => '{ "type": [ "boolean", "integer", "null" ], "example": true, "property": "reflectionValue" } ' ,
109119 'legacy:intersectionvar ' => '{ "property": "intersectionVar" } ' ,
0 commit comments