fork of hey-api/openapi-ts because I need some additional things
1{
2 "openapi": "3.1.0",
3 "info": {
4 "title": "String Constraints Union Test",
5 "version": "1.0.0"
6 },
7 "components": {
8 "schemas": {
9 "LocaleOrLanguage": {
10 "anyOf": [
11 {
12 "type": "string",
13 "minLength": 5,
14 "maxLength": 5,
15 "description": "Combination of ISO 639-1 and ISO 3166-1 alpha-2 separated by a hyphen."
16 },
17 {
18 "type": "string",
19 "minLength": 2,
20 "maxLength": 2,
21 "description": "ISO 639-1 language code."
22 }
23 ]
24 }
25 }
26 }
27}