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
What is the current behavior?
When extending a RAML document with a RAML Extension (even a trivial extension with no additional content), examples (included via a resource type) that contain arrays of object types will have their members duplicated.
Essentially, the following, used as an example in a resource type:
prop1: okprop2:
-
id: "1"
-
id: "1"
-
id: "2"
-
id: "2"prop3:
- one
- two
It does not appear that this bug occurs without the examples being embedded within a resource type. Examples defined in-line in a resource seem to be unaffected. Furthermore, arrays of scalar values, like strings, also seem to be unaffected.
If the current behavior is a bug, please provide the minimal steps to reproduce with AMF code. Please don't upload AMF code mixed with yours.
I'm submitting a ...
What is the current behavior?
When extending a RAML document with a RAML Extension (even a trivial extension with no additional content), examples (included via a resource type) that contain arrays of object types will have their members duplicated.
Essentially, the following, used as an example in a resource type:
becomes this after document resolution:
It does not appear that this bug occurs without the examples being embedded within a resource type. Examples defined in-line in a resource seem to be unaffected. Furthermore, arrays of scalar values, like strings, also seem to be unaffected.
The following Gist contains a basic reproduction of this bug, using a base RAML document, and a trivial Extension: https://gist.github.com/brennana/ce8764131fc52d71e0829fb3b19471c7
What is the expected behavior?
The examples should not contain duplicated object members within their arrays.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: