/
servlamo
/
cue
Обзор
Документация
Войти
/
servlamo
/
cue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
encoding/openapi/testdata/embed.json
85 строк
2 KB
Marcel van Lohuizen
cue: keep sane references for embedded disjunctions in Expr
21 май 2021, 20:42
21 май 2021, 20:42
37bf801
Код
Авторство
О чём код?
{ "openapi": "3.0.0", "info": { "title": "Generated by cue.", "version": "no version" }, "paths": {}, "components": { "schemas": { "Foo": { "type": "string" }, "LoadBalancerSettings": { "type": "object", "oneOf": [ { "not": { "anyOf": [ { "required": [ "consistentHash", "b" ], "properties": { "consistentHash": { "$ref": "#/components/schemas/LoadBalancerSettings.ConsistentHashLB" }, "b": { "$ref": "#/components/schemas/Foo" } } } ] } }, { "required": [ "consistentHash", "b" ], "properties": { "consistentHash": { "$ref": "#/components/schemas/LoadBalancerSettings.ConsistentHashLB" }, "b": { "$ref": "#/components/schemas/Foo" } } } ] }, "LoadBalancerSettings.ConsistentHashLB": { "type": "object", "oneOf": [ { "not": { "anyOf": [ { "required": [ "httpHeaderName" ], "properties": { "httpHeaderName": { "type": "string" } } } ] } }, { "required": [ "httpHeaderName" ], "properties": { "httpHeaderName": { "type": "string" } } } ] } } } }