-
Notifications
You must be signed in to change notification settings - Fork 174
/
xml.ex
29 lines (27 loc) · 808 Bytes
/
xml.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
defmodule OpenApiSpex.Xml do
@moduledoc """
Defines the `OpenApiSpex.Xml.t` type.
"""
defstruct [
:name,
:namespace,
:prefix,
:attribute,
:wrapped,
:extensions
]
@typedoc """
[XML Object](https://swagger.io/specification/#xmlObject)
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. See examples for expected behavior.
"""
@type t :: %__MODULE__{
name: String.t() | nil,
namespace: String.t() | nil,
prefix: String.t() | nil,
attribute: boolean | nil,
wrapped: boolean | nil,
extensions: %{String.t() => any()} | nil
}
end