Skip to content

Commit ebf6251

Browse files
committed
A bit more formatting improvements
1 parent 2576801 commit ebf6251

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/oas.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3083,7 +3083,7 @@ When using a Schema Object with XML, if no XML Object is present, the behavior i
30833083

30843084
| Field Name | Type | Description |
30853085
| ---- | :----: | ---- |
3086-
| <a name="xml-node-type"></a>nodeType | `string` | One of `element`, `attribute`, `text`, `cdata`, or `none`, as explained under [XML Node Types](#xml-node-types). The default value is `none` if `$ref`, `$dynamicRef`, or `type: array` is present in the [Schema Object](#schema-object) containing the XML Object, and `element` otherwise. |
3086+
| <a name="xml-node-type"></a>nodeType | `string` | One of `element`, `attribute`, `text`, `cdata`, or `none`, as explained under [XML Node Types](#xml-node-types). The default value is `none` if `$ref`, `$dynamicRef`, or `type: "array"` is present in the [Schema Object](#schema-object) containing the XML Object, and `element` otherwise. |
30873087
| <a name="xml-name"></a>name | `string` | Sets the name of the element/attribute corresponding to the schema, replacing name that was inferred as described under [XML Node Names](#xml-node-names). This field SHALL be ignored if the `nodeType` is `text`, `cdata`, or `none`. |
30883088
| <a name="xml-namespace"></a>namespace | `string` | The IRI ([[RFC3987]]) of the namespace definition. Value MUST be in the form of a non-relative IRI. |
30893089
| <a name="xml-prefix"></a>prefix | `string` | The prefix to be used for the [name](#xml-name). |
@@ -3112,10 +3112,10 @@ The `none` type is useful for JSON Schema constructs that require more Schema Ob
31123112

31133113
###### Modeling Element Lists
31143114

3115-
For historical compatibility, schemas of `type: array` default to `nodeType: "none"`, placing the nodes for each array item directly under the parent node.
3115+
For historical compatibility, schemas of `type: "array"` default to `nodeType: "none"`, placing the nodes for each array item directly under the parent node.
31163116
This also aligns with the inferred naming behavior defined under [XML Node Names](#xml-node-names).
31173117

3118-
To produce an element wrapping the list, set an explicit `nodeType: "element"` on the `type: array` schema.
3118+
To produce an element wrapping the list, set an explicit `nodeType: "element"` on the `type: "array"` schema.
31193119
When doing so, it is advisable to set an explicit name on either the wrapping element or the item elements to avoid them having the same inferred name.
31203120
See examples for expected behavior.
31213121

@@ -3240,7 +3240,7 @@ properties:
32403240
<animal>value</animal>
32413241
```
32423242

3243-
The `name` field for the `type: array` schema has no effect because the default `nodeType` for that object is `none`:
3243+
The `name` field for the `type: "array"` schema has no effect because the default `nodeType` for that object is `none`:
32443244

32453245
```yaml
32463246
properties:

0 commit comments

Comments
 (0)