mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Adding more docs to v2 swagger model.
once and done job, not much fun to be honest ;)
This commit is contained in:
@@ -8,6 +8,12 @@ import (
|
||||
)
|
||||
|
||||
// Discriminator is only used by OpenAPI 3+ documents, it represents a polymorphic discriminator used for schemas
|
||||
//
|
||||
// When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be
|
||||
// used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema
|
||||
// which is used to inform the consumer of the document of an alternative schema based on the value associated with it.
|
||||
//
|
||||
// When using the discriminator, inline schemas will not be considered.
|
||||
// v3 - https://spec.openapis.org/oas/v3.1.0#discriminator-object
|
||||
type Discriminator struct {
|
||||
PropertyName string
|
||||
|
||||
Reference in New Issue
Block a user