From 818ce2149b8ee5478ef2ec879a593a1a07bf6a90 Mon Sep 17 00:00:00 2001 From: petrochenko-pavel-a Date: Thu, 22 Sep 2016 21:46:42 +0700 Subject: [PATCH] Update raml-10.md Suggestion for inner xml element name clarification. I am not sure about naming for inner elements in the case of object types. (primary use case for wrapped + object types is solving polymorphism which is loosely specified in the spec) --- versions/raml-10/raml-10.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/raml-10/raml-10.md b/versions/raml-10/raml-10.md index 30d22643..e009e542 100644 --- a/versions/raml-10/raml-10.md +++ b/versions/raml-10/raml-10.md @@ -1599,7 +1599,7 @@ To facilitate the potentially complex process of serialization to XML, RAML intr | Name | Type | Description | |:---------|:------:|:-----------------| | attribute? | `boolean` | `true` serializes a type instance as an XML attribute. Can be `true` only for scalar types.

**Default:** `false` -| wrapped? | `boolean` | `true` wraps a type instance in its own XML element. Cannot be `true` for scalar types or `true` at the same moment `attribute` is `true`.

**Default:** `false` +| wrapped? | `boolean` | `true` wraps a type instance in its own XML element. Cannot be `true` for scalar types or `true` at the same moment `attribute` is `true`. When wrapped is true the name of outer XML element is deterimined by the name of the property/type to which wrapped it applied, and the name of the inner xml element is determined by resolved XML name of component type for the array types. For object types name of inner xml element is not fixed

**Default:** `false` | name? | `string` | Overrides the name of the XML element or XML attribute.

**Default:** name of either a type or property | namespace? | `string` | Configures the name of the XML namespace. | prefix? | `string` | Configures the prefix used during serialization to XML.