From 1931e126b62e7377d1f43d1ad828d9b7674fa03c Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 15 Nov 2024 18:59:53 -0800 Subject: [PATCH] Scorpio::OpenAPI::V3 update schema module constants per updated schema definitions --- lib/scorpio/openapi.rb | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/lib/scorpio/openapi.rb b/lib/scorpio/openapi.rb index 503be4a7..a53653f7 100644 --- a/lib/scorpio/openapi.rb +++ b/lib/scorpio/openapi.rb @@ -61,14 +61,8 @@ module V3 XML = Document.definitions['XML'] Response = Document.definitions['Response'] MediaType = Document.definitions['MediaType'] - MediaTypeWithExample = Document.definitions['MediaTypeWithExample'] - MediaTypeWithExamples = Document.definitions['MediaTypeWithExamples'] Example = Document.definitions['Example'] Header = Document.definitions['Header'] - HeaderWithSchema = Document.definitions['HeaderWithSchema'] - HeaderWithSchemaWithExample = Document.definitions['HeaderWithSchemaWithExample'] - HeaderWithSchemaWithExamples = Document.definitions['HeaderWithSchemaWithExamples'] - HeaderWithContent = Document.definitions['HeaderWithContent'] Paths = Document.definitions['Paths'] PathItem = Document.definitions['PathItem'] Operation = Document.definitions['Operation'] @@ -76,27 +70,17 @@ module V3 SecurityRequirement = Document.definitions['SecurityRequirement'] Tag = Document.definitions['Tag'] ExternalDocumentation = Document.definitions['ExternalDocumentation'] + ExampleXORExamples = Document.definitions['ExampleXORExamples'] + SchemaXORContent = Document.definitions['SchemaXORContent'] Parameter = Document.definitions['Parameter'] - ParameterWithSchema = Document.definitions['ParameterWithSchema'] - ParameterWithSchemaWithExample = Document.definitions['ParameterWithSchemaWithExample'] - ParameterWithSchemaWithExampleInPath = Document.definitions['ParameterWithSchemaWithExampleInPath'] - ParameterWithSchemaWithExampleInQuery = Document.definitions['ParameterWithSchemaWithExampleInQuery'] - ParameterWithSchemaWithExampleInHeader = Document.definitions['ParameterWithSchemaWithExampleInHeader'] - ParameterWithSchemaWithExampleInCookie = Document.definitions['ParameterWithSchemaWithExampleInCookie'] - ParameterWithSchemaWithExamples = Document.definitions['ParameterWithSchemaWithExamples'] - ParameterWithSchemaWithExamplesInPath = Document.definitions['ParameterWithSchemaWithExamplesInPath'] - ParameterWithSchemaWithExamplesInQuery = Document.definitions['ParameterWithSchemaWithExamplesInQuery'] - ParameterWithSchemaWithExamplesInHeader = Document.definitions['ParameterWithSchemaWithExamplesInHeader'] - ParameterWithSchemaWithExamplesInCookie = Document.definitions['ParameterWithSchemaWithExamplesInCookie'] - ParameterWithContent = Document.definitions['ParameterWithContent'] - ParameterWithContentInPath = Document.definitions['ParameterWithContentInPath'] - ParameterWithContentNotInPath = Document.definitions['ParameterWithContentNotInPath'] + PathParameter = Document.definitions['PathParameter'] + QueryParameter = Document.definitions['QueryParameter'] + HeaderParameter = Document.definitions['HeaderParameter'] + CookieParameter = Document.definitions['CookieParameter'] RequestBody = Document.definitions['RequestBody'] SecurityScheme = Document.definitions['SecurityScheme'] APIKeySecurityScheme = Document.definitions['APIKeySecurityScheme'] HTTPSecurityScheme = Document.definitions['HTTPSecurityScheme'] - NonBearerHTTPSecurityScheme = Document.definitions['NonBearerHTTPSecurityScheme'] - BearerHTTPSecurityScheme = Document.definitions['BearerHTTPSecurityScheme'] OAuth2SecurityScheme = Document.definitions['OAuth2SecurityScheme'] OpenIdConnectSecurityScheme = Document.definitions['OpenIdConnectSecurityScheme'] OAuthFlows = Document.definitions['OAuthFlows'] @@ -105,8 +89,6 @@ module V3 ClientCredentialsFlow = Document.definitions['ClientCredentialsFlow'] AuthorizationCodeOAuthFlow = Document.definitions['AuthorizationCodeOAuthFlow'] Link = Document.definitions['Link'] - LinkWithOperationRef = Document.definitions['LinkWithOperationRef'] - LinkWithOperationId = Document.definitions['LinkWithOperationId'] Callback = Document.definitions['Callback'] Encoding = Document.definitions['Encoding']