Documentation ¶
Index ¶
- Constants
- func IsNilInterface(i interface{}) bool
- func IsValidAction(t Type, action string) bool
- func IsValidProperty(t Type, property string) bool
- func IsValidSubject(t map[string]Type, property string) bool
- func IsValidTag(t Type, property string) bool
- func IsValidVerb(t Type, verb string) bool
- type Action
- type ActionProperty
- type BaseVerbs
- type Property
- type SwaggerProperty
- type Type
- type Verb
Constants ¶
View Source
const ( TYPE_ACTION = "action" TYPE_NONE = "none" TYPE_DEFAULT = "type" SUBJECT = "subject" )
Variables ¶
This section is empty.
Functions ¶
func IsNilInterface ¶
func IsNilInterface(i interface{}) bool
IsNilInterface returns whether the interface parameter is nil
func IsValidAction ¶
func IsValidProperty ¶
func IsValidTag ¶ added in v0.2.2
func IsValidVerb ¶
Types ¶
type Action ¶
type Action interface { GetName() string String() string GetProperty(name string) (ActionProperty, bool) }
type ActionProperty ¶
type SwaggerProperty ¶
type Type ¶
type Type interface { GetGroup() string GetName() string GetVerbs() []Verb GetActions() map[string]Action String() string DefaultAction() string GetProperties() map[string]Property }
func NewTypeFromOpenAPIv3 ¶
NewTypeFromOpenAPIv3 parses an Open API v3 spec and creates types for registration in seal parser.
Click to show internal directories.
Click to hide internal directories.