pub enum ParameterExamples {
One {
example: Option<Value>,
},
Multiple {
examples: IndexMap<Str, ObjectOrReference<Example>>,
},
}
Expand description
Example(s) of the parameter’s potential value
Variants§
One
Fields
example: Option<Value>
Example of the parameter’s potential value.
The example SHOULD match the specified schema and encoding properties if present.
The example
field is mutually exclusive of the examples
field. Furthermore, if referencing a schema
that contains an example, the example
value SHALL override the example provided by the schema.
To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.
Multiple
Fields
examples: IndexMap<Str, ObjectOrReference<Example>>
Examples of the parameter’s potential value.
Each example SHOULD contain a value in the correct format as specified in the parameter encoding.
The examples
field is mutually exclusive of the example
field.
Furthermore, if referencing a schema
that contains an example, the examples
value SHALL override the example provided by the schema.
Trait Implementations§
Source§impl Clone for ParameterExamples
impl Clone for ParameterExamples
Source§fn clone(&self) -> ParameterExamples
fn clone(&self) -> ParameterExamples
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more