From a88481eb5f4cb74b7ae9483aa27638ee6c68a080 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Fri, 9 Dec 2022 13:37:36 +0100 Subject: [PATCH] fix!: remove duplication in simple extensions schema --- text/simple_extensions_schema.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/text/simple_extensions_schema.yaml b/text/simple_extensions_schema.yaml index 37ef99a3a..7f51925f5 100644 --- a/text/simple_extensions_schema.yaml +++ b/text/simple_extensions_schema.yaml @@ -14,11 +14,7 @@ properties: name: type: string structure: - oneOf: - - type: string # any data type - - type: object # syntactic sugar for a non-nullable named struct - additionalProperties: - $ref: "#/$defs/type" + $ref: "#/$defs/type" parameters: # parameter list for compound types $ref: "#/$defs/type_param_defs" variadic: # when set, last parameter may be specified one or more times @@ -56,8 +52,8 @@ properties: $defs: type: oneOf: - - type: string - - type: object + - type: string # any data type + - type: object # syntactic sugar for a non-nullable named struct type_param_defs: # an array of compound type parameter definitions type: array items: