mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Added support for unevaluatedProperties as Schema and bool #118
Also ran `gofmt` across the entire project. Things need cleaning up. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
//
|
||||
// ParameterDefinitions holds parameters to be reused across operations. Parameter definitions can be
|
||||
// referenced to the ones defined here. It does not define global operation parameters
|
||||
// - https://swagger.io/specification/v2/#parametersDefinitionsObject
|
||||
// - https://swagger.io/specification/v2/#parametersDefinitionsObject
|
||||
type ParameterDefinitions struct {
|
||||
Definitions map[low.KeyReference[string]]low.ValueReference[*Parameter]
|
||||
}
|
||||
@@ -26,7 +26,7 @@ type ParameterDefinitions struct {
|
||||
//
|
||||
// ResponsesDefinitions is an object to hold responses to be reused across operations. Response definitions can be
|
||||
// referenced to the ones defined here. It does not define global operation responses
|
||||
// - https://swagger.io/specification/v2/#responsesDefinitionsObject
|
||||
// - https://swagger.io/specification/v2/#responsesDefinitionsObject
|
||||
type ResponsesDefinitions struct {
|
||||
Definitions map[low.KeyReference[string]]low.ValueReference[*Response]
|
||||
}
|
||||
@@ -35,7 +35,7 @@ type ResponsesDefinitions struct {
|
||||
//
|
||||
// A declaration of the security schemes available to be used in the specification. This does not enforce the security
|
||||
// schemes on the operations and only serves to provide the relevant details for each scheme
|
||||
// - https://swagger.io/specification/v2/#securityDefinitionsObject
|
||||
// - https://swagger.io/specification/v2/#securityDefinitionsObject
|
||||
type SecurityDefinitions struct {
|
||||
Definitions map[low.KeyReference[string]]low.ValueReference[*SecurityScheme]
|
||||
}
|
||||
@@ -44,7 +44,7 @@ type SecurityDefinitions struct {
|
||||
//
|
||||
// An object to hold data types that can be consumed and produced by operations. These data types can be primitives,
|
||||
// arrays or models.
|
||||
// - https://swagger.io/specification/v2/#definitionsObject
|
||||
// - https://swagger.io/specification/v2/#definitionsObject
|
||||
type Definitions struct {
|
||||
Schemas map[low.KeyReference[string]]low.ValueReference[*base.SchemaProxy]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user