You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
the RAML Spec says: "There are two ways to represent the example facet value: as an explicit description of a specific type instance and as a map that contains additional facets".
By that definition, an example object is either a literal example of the object or a map. In case it's a map, the additional facets available are described here. Being value the only facet that's not optional.
The example object in the files has the following syntax:
But taking what was declared before into account. The previous code is not a TestType object nor a valid Example map (as it's missing the value facet). In my opinion, this example can be described in two ways.
As a map (the correct way as we want the strict: false property):
example:
strict: falsevalue:
name: 1
As a TestType object (invalid as we lost the strict facet and the name is not a string):
example:
name: 1
NOTE: this files are on i130_add_raml101_tests branch and not master.
Hope I was clear and concise. Thank you!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi! I've been reviewing some files while testing and have some observations regarding these RAML 1.0 TCK files:
the RAML Spec says: "There are two ways to represent the example facet value: as an explicit description of a specific type instance and as a map that contains additional facets".
By that definition, an example object is either a literal example of the object or a map. In case it's a map, the additional facets available are described here. Being
value
the only facet that's not optional.The example object in the files has the following syntax:
But taking what was declared before into account. The previous code is not a TestType object nor a valid Example map (as it's missing the value facet). In my opinion, this example can be described in two ways.
As a map (the correct way as we want the
strict: false
property):As a TestType object (invalid as we lost the
strict
facet and thename
is not a string):NOTE: this files are on
i130_add_raml101_tests
branch and notmaster
.Hope I was clear and concise. Thank you!
The text was updated successfully, but these errors were encountered: