mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
This one was perhaps one of the more frustrating models. It's a simple design, checking maps of string arrays for accurate changes - but the combinations make it a bit of a challenge. I hope I've caught the variations correctly. Bloody swagger, the sooner you go away, the easier all of our lies will be.
105 lines
4.0 KiB
Go
105 lines
4.0 KiB
Go
// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v3
|
|
|
|
// Label definitions used to look up vales in yaml.Node tree.
|
|
const (
|
|
ComponentsLabel = "components"
|
|
SchemasLabel = "schemas"
|
|
EncodingLabel = "encoding"
|
|
HeadersLabel = "headers"
|
|
ParametersLabel = "parameters"
|
|
RequestBodyLabel = "requestBody"
|
|
RequestBodiesLabel = "requestBodies"
|
|
ResponsesLabel = "responses"
|
|
CallbacksLabel = "callbacks"
|
|
ContentLabel = "content"
|
|
PathsLabel = "paths"
|
|
WebhooksLabel = "webhooks"
|
|
JSONSchemaDialectLabel = "jsonSchemaDialect"
|
|
GetLabel = "get"
|
|
PostLabel = "post"
|
|
PatchLabel = "patch"
|
|
PutLabel = "put"
|
|
DeleteLabel = "delete"
|
|
OptionsLabel = "options"
|
|
HeadLabel = "head"
|
|
TraceLabel = "trace"
|
|
LinksLabel = "links"
|
|
DefaultLabel = "default"
|
|
SecurityLabel = "security"
|
|
SecuritySchemesLabel = "securitySchemes"
|
|
OAuthFlowsLabel = "flows"
|
|
VariablesLabel = "variables"
|
|
ServersLabel = "servers"
|
|
ServerLabel = "server"
|
|
ImplicitLabel = "implicit"
|
|
PasswordLabel = "password"
|
|
ClientCredentialsLabel = "clientCredentials"
|
|
AuthorizationCodeLabel = "authorizationCode"
|
|
DescriptionLabel = "description"
|
|
URLLabel = "url"
|
|
NameLabel = "name"
|
|
EmailLabel = "email"
|
|
TitleLabel = "title"
|
|
TermsOfServiceLabel = "termsOfService"
|
|
VersionLabel = "version"
|
|
LicenseLabel = "license"
|
|
ContactLabel = "contact"
|
|
NamespaceLabel = "namespace"
|
|
PrefixLabel = "prefix"
|
|
AttributeLabel = "attribute"
|
|
WrappedLabel = "wrapped"
|
|
PropertyNameLabel = "propertyName"
|
|
SummaryLabel = "summary"
|
|
ValueLabel = "value"
|
|
ExternalValue = "externalValue"
|
|
SchemaDialectLabel = "$schema"
|
|
ExclusiveMaximumLabel = "exclusiveMaximum"
|
|
ExclusiveMinimumLabel = "exclusiveMinimum"
|
|
TypeLabel = "type"
|
|
MultipleOfLabel = "multipleOf"
|
|
MaximumLabel = "maximum"
|
|
MinimumLabel = "minimum"
|
|
MaxLengthLabel = "maxLength"
|
|
MinLengthLabel = "minLength"
|
|
PatternLabel = "pattern"
|
|
FormatLabel = "format"
|
|
MaxItemsLabel = "maxItems"
|
|
ExamplesLabel = "examples"
|
|
MinItemsLabel = "minItems"
|
|
UniqueItemsLabel = "uniqueItems"
|
|
MaxPropertiesLabel = "maxProperties"
|
|
MinPropertiesLabel = "minProperties"
|
|
RequiredLabel = "required"
|
|
EnumLabel = "enum"
|
|
SchemaLabel = "schema"
|
|
NotLabel = "not"
|
|
ItemsLabel = "items"
|
|
PropertiesLabel = "properties"
|
|
AllOfLabel = "allOf"
|
|
AnyOfLabel = "anyOf"
|
|
OneOfLabel = "oneOf"
|
|
AdditionalPropertiesLabel = "additionalProperties"
|
|
ContentEncodingLabel = "contentEncoding"
|
|
ContentMediaType = "contentMediaType"
|
|
NullableLabel = "nullable"
|
|
ReadOnlyLabel = "readOnly"
|
|
WriteOnlyLabel = "writeOnly"
|
|
XMLLabel = "xml"
|
|
DeprecatedLabel = "deprecated"
|
|
ExampleLabel = "example"
|
|
RefLabel = "$ref"
|
|
DiscriminatorLabel = "discriminator"
|
|
ExternalDocsLabel = "externalDocs"
|
|
InLabel = "in"
|
|
AllowEmptyValueLabel = "allowEmptyValue"
|
|
StyleLabel = "style"
|
|
CollectionFormatLabel = "collectionFormat"
|
|
AllowReservedLabel = "allowReserved"
|
|
ExplodeLabel = "explode"
|
|
ContentTypeLabel = "contentType"
|
|
SecurityDefinitionLabel = "securityDefinition"
|
|
)
|