/
servlamo
/
cue
Обзор
Документация
Войти
/
servlamo
/
cue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
encoding/openapi/testdata/script/basics.txtar
47 строк
811 B
Roger Peppe
encoding/jsonschema: refactor reference handling
16 дек 2024, 19:59
16 дек 2024, 19:59
028c6f3
Код
Авторство
О чём код?
-- type.yaml -- openapi: 3.0.0 info: title: Users schema version: v1beta1 contact: name: The CUE Authors url: https://cuelang.org components: schemas: User: description: "A User uses something." type: object properties: id: type: integer name: type: string address: $ref: "#/components/schemas/PhoneNumber" PhoneNumber: description: "The number to dial." type: string -- out.cue -- // Users schema package foo info: { title: *"Users schema" | string version: *"v1beta1" | string contact: { name: "The CUE Authors" url: "https://cuelang.org" } } // The number to dial. #PhoneNumber: string // A User uses something. #User: { id?: int name?: string address?: #PhoneNumber ... }