From 810ad46446a3483fe93b8beef659d8cb04a2429a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 28 Aug 2018 09:38:59 +0200 Subject: [PATCH] Simplify schemas --- docs/reference/swagger.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/reference/swagger.yaml b/docs/reference/swagger.yaml index a9c898f4..ccb84146 100644 --- a/docs/reference/swagger.yaml +++ b/docs/reference/swagger.yaml @@ -1197,15 +1197,13 @@ components: number: can only contain numerical representation css_color: can only contain color names or hex-values default: - $ref: '#/components/schemas/PlaceholderDefaultValue' + anyOf: + - type: string + - type: number + - type: boolean required: - type - default - PlaceholderDefaultValue: - anyOf: - - type: string - - type: number - - type: boolean TemplateView: type: object title: Template View