cuelang.org/go@v0.10.1/encoding/openapi/testdata/embed.json (about) 1 { 2 "openapi": "3.0.0", 3 "info": { 4 "title": "Generated by cue.", 5 "version": "no version" 6 }, 7 "paths": {}, 8 "components": { 9 "schemas": { 10 "Foo": { 11 "type": "string" 12 }, 13 "LoadBalancerSettings": { 14 "type": "object", 15 "oneOf": [ 16 { 17 "not": { 18 "anyOf": [ 19 { 20 "required": [ 21 "consistentHash", 22 "b" 23 ], 24 "properties": { 25 "consistentHash": { 26 "$ref": "#/components/schemas/LoadBalancerSettings.ConsistentHashLB" 27 }, 28 "b": { 29 "$ref": "#/components/schemas/Foo" 30 } 31 } 32 } 33 ] 34 } 35 }, 36 { 37 "required": [ 38 "consistentHash", 39 "b" 40 ], 41 "properties": { 42 "consistentHash": { 43 "$ref": "#/components/schemas/LoadBalancerSettings.ConsistentHashLB" 44 }, 45 "b": { 46 "$ref": "#/components/schemas/Foo" 47 } 48 } 49 } 50 ] 51 }, 52 "LoadBalancerSettings.ConsistentHashLB": { 53 "type": "object", 54 "oneOf": [ 55 { 56 "not": { 57 "anyOf": [ 58 { 59 "required": [ 60 "httpHeaderName" 61 ], 62 "properties": { 63 "httpHeaderName": { 64 "type": "string" 65 } 66 } 67 } 68 ] 69 } 70 }, 71 { 72 "required": [ 73 "httpHeaderName" 74 ], 75 "properties": { 76 "httpHeaderName": { 77 "type": "string" 78 } 79 } 80 } 81 ] 82 } 83 } 84 } 85 }