Unisys provides the following OpenAPI vendor extensions, to set custom values for data type sizes.
Extension Name | Description |
x-Unisys-Maxlength | Specifies COBOL string field length |
x-Unisys-Maxitems | Specifies COBOL array field max items count |
x-Unisys-VariyingSizeArray | Specifies the COBOL array field of type DEPENDING ON |
Example,
"name": { "type": "String", "x-Unisys-Maxlength": 50 }, "tags": { "type": "array", "x-Unisys-Maxitems": 500, "x-Unisys-VariableCobolArray": true }