Skip to content

Commit e330609

Browse files
committed
Add null guidance for CDATA and text
The guidance is the same as for serializing `null` and other non-text data types to text in other text-based media types such as the form media types.
1 parent 792efcc commit e330609

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/oas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3259,6 +3259,7 @@ However, implementations SHOULD handle `null` values as follows:
32593259

32603260
* For elements, produce an empty element with an `xsi:nil="true"` attribute.
32613261
* For attributes, omit the attribute.
3262+
* For text and CDATA sections, see [Appendix B](#appendix-b-data-type-conversion) for a discussion of serializing non-text values to text
32623263

32633264
Note that for attributes, this makes either a `null` value or a missing property serialize to an omitted attribute.
32643265
As the Schema Object validates the in-memory representation, this allows handling the combination of `null` and a required property.

0 commit comments

Comments
 (0)