Files
libopenapi/datamodel/low/3.0/oauth_flows.go
Dave Shanley a906d46227 Completed adding v3 models (I think)
Going to start logic for building things out. attempting generic builder pattern first.
2022-07-29 06:52:07 -04:00

25 lines
627 B
Go

package v3
import (
"github.com/pb33f/libopenapi/datamodel/low"
"gopkg.in/yaml.v3"
)
type OAuthFlows struct {
Node *yaml.Node
Implicit OAuthFlow
Password OAuthFlow
ClientCredentials OAuthFlow
AuthorizationCode OAuthFlow
Extensions map[string]low.ObjectReference
}
type OAuthFlow struct {
Node *yaml.Node
AuthorizationUrl low.NodeReference[string]
TokenURL low.NodeReference[string]
RefreshURL low.NodeReference[string]
Scopes map[string]string
Extensions map[string]low.ObjectReference
}