Source code for dmr.openapi.objects.xml
from dataclasses import dataclass
[docs]
@dataclass(kw_only=True, slots=True)
class XML:
"""
A metadata object that allows for more fine-tuned XML model definitions.
When using arrays, XML element names are not inferred
(for singular/plural forms) and the name property `SHOULD` be used
to add that information.
"""
name: str | None = None
namespace: str | None = None
prefix: str | None = None
attribute: bool = False
wrapped: bool = False