Guide
Default encoding of scalars
Section titled โDefault encoding of scalarsโAs in Json we have some default handling of the common scalars like utcDateTime
| Scalar Type | Default Encoding | Encoding name |
|---|---|---|
utcDateTime | xs:dateTime | TypeSpec.Xml.Encoding.xmlDateTime |
offsetDateTime | xs:dateTime | TypeSpec.Xml.Encoding.xmlDateTime |
plainDate | xs:date | TypeSpec.Xml.Encoding.xmlDate |
plainTime | xs:time | TypeSpec.Xml.Encoding.xmlTime |
duration | xs:duration | TypeSpec.Xml.Encoding.xmlDuration |
bytes | xs:base64Binary | TypeSpec.Xml.Encoding.xmlBase64Binary |
Examples
Section titled โExamplesโ1. Array of primitive types
Section titled โ1. Array of primitive typesโ| TypeSpec | Xml | OpenAPI3 |
|
|
|
|
|
|
|
|
|
|
|
|
2. Complex array types
Section titled โ2. Complex array typesโ| TypeSpec | Xml | OpenAPI3 |
|
|
|
|
|
|
|
|
|
|
|
|
3. Nested models
Section titled โ3. Nested modelsโ| TypeSpec | Xml | OpenAPI3 |
|
|
|
|
|
|
|
|
|
4. Attributes
Section titled โ4. Attributesโ| TypeSpec | Xml | OpenAPI3 |
|
|
|
5. Namespace and prefix (inline form)
Section titled โ5. Namespace and prefix (inline form)โ| TypeSpec | Xml | OpenAPI3 |
|
|
|
|
|
|
6. Namespace and prefix (normalized form)
Section titled โ6. Namespace and prefix (normalized form)โ| TypeSpec | Xml | OpenAPI3 |
|
|
|
|
|
|
6. Property setting the text of the node
Section titled โ6. Property setting the text of the nodeโ| TypeSpec | Xml | OpenAPI3 |
|
|
|