-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.go
20 lines (15 loc) · 893 Bytes
/
example.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package oasm
// An example of the usage of a schema
type Example struct {
// Short description for the example.
Summary string `json:"summary,omitempty"`
// Long description for the example. CommonMark syntax MAY be used for rich text representation.
Description string `json:"description,omitempty"`
// Embedded literal example. The value field and externalValue field are mutually exclusive.
// To represent examples of media types that cannot naturally represented in JSON or YAML,
// use a string value to contain the example, escaping where necessary.
Value interface{} `json:"value,omitempty"`
// A URL that points to the literal example. This provides the capability to reference examples that cannot easily
// be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive.
ExternalValue string `json:"externalValue,omitempty"`
}