From 11c648ef0b739ed47c74d89738ef8ebff21c59f6 Mon Sep 17 00:00:00 2001 From: Alejandro Loose Date: Wed, 16 Feb 2022 14:39:22 -0300 Subject: [PATCH] #767 - Correct and simplify query string example This example shows that unions work like exclusive (gives the idea that an instance must match only with one element of the union) but in the union type section always says that it should match `at least with one element` of the union. --- versions/raml-10/raml-10.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/versions/raml-10/raml-10.md b/versions/raml-10/raml-10.md index cb2d9c4..888c5cb 100644 --- a/versions/raml-10/raml-10.md +++ b/versions/raml-10/raml-10.md @@ -2041,14 +2041,14 @@ In the following example, union types and extended multiple types are used to co #%RAML 1.0 title: Illustrate query parameter variations types: - lat-long: # lat & long required; mutually exclusive with location + lat-long: properties: lat: number long: number - loc: # location required; mutually exclusive with lat & long + loc: properties: location: - paging: # each is optional, not exclusive with anything + paging: properties: start?: number page-size?: number @@ -2067,11 +2067,6 @@ types: start: 2 page-size: 20 location: 1,2 - third: # not valid - value: - lat: 12 - location: 2 - strict: false # because it's not valid ``` #### Query Parameters in a Query String