@@ -43,8 +43,8 @@ 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" } ' ,
47- 'uniontype ' => '{ "property": "unionType " } ' ,
46+ 'legacy: arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
47+ 'type-info:arrayshape ' => '{ "type": "object", "additionalProperties": { "type": "boolean" }, " property": "arrayShape " } ' ,
4848 'promotedstring ' => '{ "type": "string", "property": "promotedString" } ' ,
4949 'legacy:mixedunion ' => '{ "example": "My value", "property": "mixedUnion" } ' ,
5050 'type-info:mixedunion ' => '{ "example": "My value", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "mixed" } } ], "property": "mixedUnion" } ' ,
@@ -58,14 +58,16 @@ public static function resolverAugmentCases(): iterable
5858 'legacy:nullabletypedlistunion ' => '{ "nullable": true, "property": "nullableTypedListUnion" } ' ,
5959 'type-info:nullabletypedlistunion ' => '{ "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } } ], "property": "nullableTypedListUnion" } ' ,
6060 '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" } ' ,
61+ '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" } ' ,
6262 'reflectionvalue ' => '{ "example": true, "nullable": true, "property": "reflectionValue" } ' ,
6363 'legacy:intersectionvar ' => '{ "property": "intersectionVar" } ' ,
6464 'type-info:intersectionvar ' => '{ "allOf": [ { "$ref": "#/components/schemas/FirstInterface" }, { "$ref": "#/components/schemas/SecondInterface" } ], "property": "intersectionVar" } ' ,
6565 'legacy:nestedoneof ' => '{ "property": "nestedOneOf" } ' ,
6666 'type-info:nestedoneof ' => '{ "oneOf": [ { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "string" } } ], "property": "nestedOneOf" } ' ,
6767 'legacy:nestedoneofwithitems ' => '{ "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "string" } ] }, "property": "nestedOneOfWithItems" } ' ,
6868 'type-info:nestedoneofwithitems ' => '{ "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "string" } ] }, "property": "nestedOneOfWithItems" } ' ,
69+ 'type-info:stringmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "stringMap" } ' ,
70+ 'type-info:intkeyedmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "intKeyedMap" } ' ,
6971 ],
7072 OA \OpenApi::VERSION_3_1_0 => [
7173 'nothing ' => '{ "property": "nothing" } ' ,
@@ -87,8 +89,8 @@ public static function resolverAugmentCases(): iterable
8789 'intrange ' => '{ "type": "integer", "maximum": 10, "minimum": -9223372036854775808, "property": "intRange" } ' ,
8890 'positiveint ' => '{ "type": "integer", "maximum": 9223372036854775807, "minimum": 1, "property": "positiveInt" } ' ,
8991 'nonzeroint ' => '{ "type": "integer", "not": { "const": 0 }, "property": "nonZeroInt" } ' ,
90- 'arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
91- 'legacy:uniontype ' => '{ "property": "unionType " } ' ,
92+ 'legacy: arrayshape ' => '{ "type": "array", "items": { "type": "boolean" }, "property": "arrayShape" } ' ,
93+ 'type-info:arrayshape ' => '{ "type": "object", "additionalProperties": { "type": "boolean" }, " property": "arrayShape " } ' ,
9294 'type-info:uniontype ' => '{ "type": [ "integer", "string" ], "property": "unionType" } ' ,
9395 'promotedstring ' => '{ "type": "string", "property": "promotedString" } ' ,
9496 'legacy:mixedunion ' => '{ "example": "My value", "property": "mixedUnion" } ' ,
@@ -103,7 +105,7 @@ public static function resolverAugmentCases(): iterable
103105 'legacy:nullabletypedlistunion ' => '{ "property": "nullableTypedListUnion" } ' ,
104106 'type-info:nullabletypedlistunion ' => '{ "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "null" } ], "property": "nullableTypedListUnion" } ' ,
105107 '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" } ' ,
108+ '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" } ' ,
107109 'legacy:reflectionvalue ' => '{ "example": true, "property": "reflectionValue" } ' ,
108110 'type-info:reflectionvalue ' => '{ "type": [ "boolean", "integer", "null" ], "example": true, "property": "reflectionValue" } ' ,
109111 'legacy:intersectionvar ' => '{ "property": "intersectionVar" } ' ,
@@ -112,6 +114,8 @@ public static function resolverAugmentCases(): iterable
112114 'type-info:nestedoneof ' => '{ "oneOf": [ { "type": "array", "items": { "$ref": "#/components/schemas/DocblockAndTypehintTypes" } }, { "type": "array", "items": { "type": "string" } } ], "property": "nestedOneOf" } ' ,
113115 'legacy:nestedoneofwithitems ' => '{ "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "string" } ] }, "property": "nestedOneOfWithItems" } ' ,
114116 'type-info:nestedoneofwithitems ' => '{ "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/DocblockAndTypehintTypes" }, { "type": "string" } ] }, "property": "nestedOneOfWithItems" } ' ,
117+ 'type-info:stringmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "stringMap" } ' ,
118+ 'type-info:intkeyedmap ' => '{ "type": "object", "additionalProperties": { "type": "string" }, "property": "intKeyedMap" } ' ,
115119 ],
116120 ];
117121
0 commit comments