Add openapi3.Unmarshal

Fixes #7442
Fixes #7443
This commit is contained in:
Bjørn Erik Pedersen
2020-06-30 16:11:05 +02:00
parent 58c0f5e617
commit 12a65e76df
12 changed files with 268 additions and 26 deletions

View File

@@ -173,6 +173,12 @@ type TranslationKeyProvider interface {
TranslationKey() string
}
// UnmarshableResource represents a Resource that can be unmarshaled to some other format.
type UnmarshableResource interface {
ReadSeekCloserResource
Identifier
}
type resourceTypesHolder struct {
mediaType media.Type
resourceType string