@scalar/fastify-api-reference 1.25.24 → 1.25.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ import fp from "fastify-plugin";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
  import { fileURLToPath } from "node:url";
8
- var e$a = "A JSON Schema for Swagger 2.0 API.", i$6 = "http://swagger.io/v2/schema.json#", t$g = "http://json-schema.org/draft-04/schema#", r$b = "object", n$9 = ["swagger", "info", "paths"], o$7 = false, s$3 = { "^x-": { $ref: "#/definitions/vendorExtension" } }, a$5 = { swagger: { type: "string", enum: ["2.0"], description: "The Swagger version of this document." }, info: { $ref: "#/definitions/info" }, host: { type: "string", pattern: "^[^{}/ :\\\\]+(?::\\d+)?$", description: "The host (name or ip) of the API. Example: 'swagger.io'" }, basePath: { type: "string", pattern: "^/", description: "The base path to the API. Example: '/api'." }, schemes: { $ref: "#/definitions/schemesList" }, consumes: { description: "A list of MIME types accepted by the API.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, produces: { description: "A list of MIME types the API can produce.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, paths: { $ref: "#/definitions/paths" }, definitions: { $ref: "#/definitions/definitions" }, parameters: { $ref: "#/definitions/parameterDefinitions" }, responses: { $ref: "#/definitions/responseDefinitions" }, security: { $ref: "#/definitions/security" }, securityDefinitions: { $ref: "#/definitions/securityDefinitions" }, tags: { type: "array", items: { $ref: "#/definitions/tag" }, uniqueItems: true }, externalDocs: { $ref: "#/definitions/externalDocs" } }, p$4 = { info: { type: "object", description: "General information about the API.", required: ["version", "title"], additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { title: { type: "string", description: "A unique and precise title of the API." }, version: { type: "string", description: "A semantic version number of the API." }, description: { type: "string", description: "A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed." }, termsOfService: { type: "string", description: "The terms of service for the API." }, contact: { $ref: "#/definitions/contact" }, license: { $ref: "#/definitions/license" } } }, contact: { type: "object", description: "Contact information for the owners of the API.", additionalProperties: false, properties: { name: { type: "string", description: "The identifying name of the contact person/organization." }, url: { type: "string", description: "The URL pointing to the contact information.", format: "uri" }, email: { type: "string", description: "The email address of the contact person/organization.", format: "email" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, license: { type: "object", required: ["name"], additionalProperties: false, properties: { name: { type: "string", description: "The name of the license type. It's encouraged to use an OSI compatible license." }, url: { type: "string", description: "The URL pointing to the license.", format: "uri" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, paths: { type: "object", description: "Relative paths to the individual endpoints. They must be relative to the 'basePath'.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" }, "^/": { $ref: "#/definitions/pathItem" } }, additionalProperties: false }, definitions: { type: "object", additionalProperties: { $ref: "#/definitions/schema" }, description: "One or more JSON objects describing the schemas being consumed and produced by the API." }, parameterDefinitions: { type: "object", additionalProperties: { $ref: "#/definitions/parameter" }, description: "One or more JSON representations for parameters" }, responseDefinitions: { type: "object", additionalProperties: { $ref: "#/definitions/response" }, description: "One or more JSON representations for responses" }, externalDocs: { type: "object", additionalProperties: false, description: "information about external documentation", required: ["url"], properties: { description: { type: "string" }, url: { type: "string", format: "uri" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, examples: { type: "object", additionalProperties: true }, mimeType: { type: "string", description: "The MIME type of the HTTP message." }, operation: { type: "object", required: ["responses"], additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { tags: { type: "array", items: { type: "string" }, uniqueItems: true }, summary: { type: "string", description: "A brief summary of the operation." }, description: { type: "string", description: "A longer description of the operation, GitHub Flavored Markdown is allowed." }, externalDocs: { $ref: "#/definitions/externalDocs" }, operationId: { type: "string", description: "A unique identifier of the operation." }, produces: { description: "A list of MIME types the API can produce.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, consumes: { description: "A list of MIME types the API can consume.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, parameters: { $ref: "#/definitions/parametersList" }, responses: { $ref: "#/definitions/responses" }, schemes: { $ref: "#/definitions/schemesList" }, deprecated: { type: "boolean", default: false }, security: { $ref: "#/definitions/security" } } }, pathItem: { type: "object", additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { $ref: { type: "string" }, get: { $ref: "#/definitions/operation" }, put: { $ref: "#/definitions/operation" }, post: { $ref: "#/definitions/operation" }, delete: { $ref: "#/definitions/operation" }, options: { $ref: "#/definitions/operation" }, head: { $ref: "#/definitions/operation" }, patch: { $ref: "#/definitions/operation" }, parameters: { $ref: "#/definitions/parametersList" } } }, responses: { type: "object", description: "Response objects names can either be any valid HTTP status code or 'default'.", minProperties: 1, additionalProperties: false, patternProperties: { "^([0-9]{3})$|^(default)$": { $ref: "#/definitions/responseValue" }, "^x-": { $ref: "#/definitions/vendorExtension" } }, not: { type: "object", additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } } }, responseValue: { oneOf: [{ $ref: "#/definitions/response" }, { $ref: "#/definitions/jsonReference" }] }, response: { type: "object", required: ["description"], properties: { description: { type: "string" }, schema: { oneOf: [{ $ref: "#/definitions/schema" }, { $ref: "#/definitions/fileSchema" }] }, headers: { $ref: "#/definitions/headers" }, examples: { $ref: "#/definitions/examples" } }, additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, headers: { type: "object", additionalProperties: { $ref: "#/definitions/header" } }, header: { type: "object", additionalProperties: false, required: ["type"], properties: { type: { type: "string", enum: ["string", "number", "integer", "boolean", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, vendorExtension: { description: "Any property starting with x- is valid.", additionalProperties: true, additionalItems: true }, bodyParameter: { type: "object", required: ["name", "in", "schema"], patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["body"] }, required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, schema: { $ref: "#/definitions/schema" } }, additionalProperties: false }, headerParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["header"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, queryParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["query"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, allowEmptyValue: { type: "boolean", default: false, description: "allows sending a parameter by name only or with an empty value." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormatWithMulti" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, formDataParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["formData"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, allowEmptyValue: { type: "boolean", default: false, description: "allows sending a parameter by name only or with an empty value." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array", "file"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormatWithMulti" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, pathParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, required: ["required"], properties: { required: { type: "boolean", enum: [true], description: "Determines whether or not this parameter is required or optional." }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["path"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, nonBodyParameter: { type: "object", required: ["name", "in", "type"], oneOf: [{ $ref: "#/definitions/headerParameterSubSchema" }, { $ref: "#/definitions/formDataParameterSubSchema" }, { $ref: "#/definitions/queryParameterSubSchema" }, { $ref: "#/definitions/pathParameterSubSchema" }] }, parameter: { oneOf: [{ $ref: "#/definitions/bodyParameter" }, { $ref: "#/definitions/nonBodyParameter" }] }, schema: { type: "object", description: "A deterministic version of a JSON Schema object.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { $ref: { type: "string" }, format: { type: "string" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, multipleOf: { $ref: "http://json-schema.org/draft-04/schema#/properties/multipleOf" }, maximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/maximum" }, exclusiveMaximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" }, minimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/minimum" }, exclusiveMinimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" }, maxLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, pattern: { $ref: "http://json-schema.org/draft-04/schema#/properties/pattern" }, maxItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, uniqueItems: { $ref: "http://json-schema.org/draft-04/schema#/properties/uniqueItems" }, maxProperties: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minProperties: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, required: { $ref: "http://json-schema.org/draft-04/schema#/definitions/stringArray" }, enum: { $ref: "http://json-schema.org/draft-04/schema#/properties/enum" }, additionalProperties: { anyOf: [{ $ref: "#/definitions/schema" }, { type: "boolean" }], default: {} }, type: { $ref: "http://json-schema.org/draft-04/schema#/properties/type" }, items: { anyOf: [{ $ref: "#/definitions/schema" }, { type: "array", minItems: 1, items: { $ref: "#/definitions/schema" } }], default: {} }, allOf: { type: "array", minItems: 1, items: { $ref: "#/definitions/schema" } }, properties: { type: "object", additionalProperties: { $ref: "#/definitions/schema" }, default: {} }, discriminator: { type: "string" }, readOnly: { type: "boolean", default: false }, xml: { $ref: "#/definitions/xml" }, externalDocs: { $ref: "#/definitions/externalDocs" }, example: {} }, additionalProperties: false }, fileSchema: { type: "object", description: "A deterministic version of a JSON Schema object.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, required: ["type"], properties: { format: { type: "string" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, required: { $ref: "http://json-schema.org/draft-04/schema#/definitions/stringArray" }, type: { type: "string", enum: ["file"] }, readOnly: { type: "boolean", default: false }, externalDocs: { $ref: "#/definitions/externalDocs" }, example: {} }, additionalProperties: false }, primitivesItems: { type: "object", additionalProperties: false, properties: { type: { type: "string", enum: ["string", "number", "integer", "boolean", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, security: { type: "array", items: { $ref: "#/definitions/securityRequirement" }, uniqueItems: true }, securityRequirement: { type: "object", additionalProperties: { type: "array", items: { type: "string" }, uniqueItems: true } }, xml: { type: "object", additionalProperties: false, properties: { name: { type: "string" }, namespace: { type: "string" }, prefix: { type: "string" }, attribute: { type: "boolean", default: false }, wrapped: { type: "boolean", default: false } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, tag: { type: "object", additionalProperties: false, required: ["name"], properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/externalDocs" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, securityDefinitions: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/basicAuthenticationSecurity" }, { $ref: "#/definitions/apiKeySecurity" }, { $ref: "#/definitions/oauth2ImplicitSecurity" }, { $ref: "#/definitions/oauth2PasswordSecurity" }, { $ref: "#/definitions/oauth2ApplicationSecurity" }, { $ref: "#/definitions/oauth2AccessCodeSecurity" }] } }, basicAuthenticationSecurity: { type: "object", additionalProperties: false, required: ["type"], properties: { type: { type: "string", enum: ["basic"] }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, apiKeySecurity: { type: "object", additionalProperties: false, required: ["type", "name", "in"], properties: { type: { type: "string", enum: ["apiKey"] }, name: { type: "string" }, in: { type: "string", enum: ["header", "query"] }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2ImplicitSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "authorizationUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["implicit"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, authorizationUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2PasswordSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["password"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2ApplicationSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["application"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2AccessCodeSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "authorizationUrl", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["accessCode"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, authorizationUrl: { type: "string", format: "uri" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2Scopes: { type: "object", additionalProperties: { type: "string" } }, mediaTypeList: { type: "array", items: { $ref: "#/definitions/mimeType" }, uniqueItems: true }, parametersList: { type: "array", description: "The parameters needed to send a valid API call.", additionalItems: false, items: { oneOf: [{ $ref: "#/definitions/parameter" }, { $ref: "#/definitions/jsonReference" }] }, uniqueItems: true }, schemesList: { type: "array", description: "The transfer protocol of the API.", items: { type: "string", enum: ["http", "https", "ws", "wss"] }, uniqueItems: true }, collectionFormat: { type: "string", enum: ["csv", "ssv", "tsv", "pipes"], default: "csv" }, collectionFormatWithMulti: { type: "string", enum: ["csv", "ssv", "tsv", "pipes", "multi"], default: "csv" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, multipleOf: { $ref: "http://json-schema.org/draft-04/schema#/properties/multipleOf" }, maximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/maximum" }, exclusiveMaximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" }, minimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/minimum" }, exclusiveMinimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" }, maxLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, pattern: { $ref: "http://json-schema.org/draft-04/schema#/properties/pattern" }, maxItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, uniqueItems: { $ref: "http://json-schema.org/draft-04/schema#/properties/uniqueItems" }, enum: { $ref: "http://json-schema.org/draft-04/schema#/properties/enum" }, jsonReference: { type: "object", required: ["$ref"], additionalProperties: false, properties: { $ref: { type: "string" } } } }, m$1 = { title: e$a, id: i$6, $schema: t$g, type: r$b, required: n$9, additionalProperties: o$7, patternProperties: s$3, properties: a$5, definitions: p$4 };
9
- var e$9 = "https://spec.openapis.org/oas/3.0/schema/2021-09-28", t$f = "http://json-schema.org/draft-04/schema#", r$a = "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3", i$5 = "object", n$8 = ["openapi", "info", "paths"], o$6 = { openapi: { type: "string", pattern: "^3\\.0\\.\\d(-.+)?$" }, info: { $ref: "#/definitions/Info" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, servers: { type: "array", items: { $ref: "#/definitions/Server" } }, security: { type: "array", items: { $ref: "#/definitions/SecurityRequirement" } }, tags: { type: "array", items: { $ref: "#/definitions/Tag" }, uniqueItems: true }, paths: { $ref: "#/definitions/Paths" }, components: { $ref: "#/definitions/Components" } }, p$3 = { "^x-": {} }, s$2 = false, a$4 = { Reference: { type: "object", required: ["$ref"], patternProperties: { "^\\$ref$": { type: "string", format: "uri-reference" } } }, Info: { type: "object", required: ["title", "version"], properties: { title: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri-reference" }, contact: { $ref: "#/definitions/Contact" }, license: { $ref: "#/definitions/License" }, version: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Contact: { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri-reference" }, email: { type: "string", format: "email" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, License: { type: "object", required: ["name"], properties: { name: { type: "string" }, url: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Server: { type: "object", required: ["url"], properties: { url: { type: "string" }, description: { type: "string" }, variables: { type: "object", additionalProperties: { $ref: "#/definitions/ServerVariable" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ServerVariable: { type: "object", required: ["default"], properties: { enum: { type: "array", items: { type: "string" } }, default: { type: "string" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Components: { type: "object", properties: { schemas: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } } }, responses: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Response" }] } } }, parameters: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Parameter" }] } } }, examples: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Example" }] } } }, requestBodies: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/RequestBody" }] } } }, headers: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Header" }] } } }, securitySchemes: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/SecurityScheme" }] } } }, links: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Link" }] } } }, callbacks: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Callback" }] } } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Schema: { type: "object", properties: { title: { type: "string" }, multipleOf: { type: "number", minimum: 0, exclusiveMinimum: true }, maximum: { type: "number" }, exclusiveMaximum: { type: "boolean", default: false }, minimum: { type: "number" }, exclusiveMinimum: { type: "boolean", default: false }, maxLength: { type: "integer", minimum: 0 }, minLength: { type: "integer", minimum: 0, default: 0 }, pattern: { type: "string", format: "regex" }, maxItems: { type: "integer", minimum: 0 }, minItems: { type: "integer", minimum: 0, default: 0 }, uniqueItems: { type: "boolean", default: false }, maxProperties: { type: "integer", minimum: 0 }, minProperties: { type: "integer", minimum: 0, default: 0 }, required: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: true }, enum: { type: "array", items: {}, minItems: 1, uniqueItems: false }, type: { type: "string", enum: ["array", "boolean", "integer", "number", "object", "string"] }, not: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, allOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, oneOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, anyOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, properties: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, additionalProperties: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }, { type: "boolean" }], default: true }, description: { type: "string" }, format: { type: "string" }, default: {}, nullable: { type: "boolean", default: false }, discriminator: { $ref: "#/definitions/Discriminator" }, readOnly: { type: "boolean", default: false }, writeOnly: { type: "boolean", default: false }, example: {}, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, deprecated: { type: "boolean", default: false }, xml: { $ref: "#/definitions/XML" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Discriminator: { type: "object", required: ["propertyName"], properties: { propertyName: { type: "string" }, mapping: { type: "object", additionalProperties: { type: "string" } } } }, XML: { type: "object", properties: { name: { type: "string" }, namespace: { type: "string", format: "uri" }, prefix: { type: "string" }, attribute: { type: "boolean", default: false }, wrapped: { type: "boolean", default: false } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Response: { type: "object", required: ["description"], properties: { description: { type: "string" }, headers: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Header" }, { $ref: "#/definitions/Reference" }] } }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" } }, links: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Link" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, MediaType: { type: "object", properties: { schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } }, encoding: { type: "object", additionalProperties: { $ref: "#/definitions/Encoding" } } }, patternProperties: { "^x-": {} }, additionalProperties: false, allOf: [{ $ref: "#/definitions/ExampleXORExamples" }] }, Example: { type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, value: {}, externalValue: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Header: { type: "object", properties: { description: { type: "string" }, required: { type: "boolean", default: false }, deprecated: { type: "boolean", default: false }, allowEmptyValue: { type: "boolean", default: false }, style: { type: "string", enum: ["simple"], default: "simple" }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false }, schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" }, minProperties: 1, maxProperties: 1 }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false, allOf: [{ $ref: "#/definitions/ExampleXORExamples" }, { $ref: "#/definitions/SchemaXORContent" }] }, Paths: { type: "object", patternProperties: { "^\\/": { $ref: "#/definitions/PathItem" }, "^x-": {} }, additionalProperties: false }, PathItem: { type: "object", properties: { $ref: { type: "string" }, summary: { type: "string" }, description: { type: "string" }, servers: { type: "array", items: { $ref: "#/definitions/Server" } }, parameters: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Parameter" }, { $ref: "#/definitions/Reference" }] }, uniqueItems: true } }, patternProperties: { "^(get|put|post|delete|options|head|patch|trace)$": { $ref: "#/definitions/Operation" }, "^x-": {} }, additionalProperties: false }, Operation: { type: "object", required: ["responses"], properties: { tags: { type: "array", items: { type: "string" } }, summary: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, operationId: { type: "string" }, parameters: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Parameter" }, { $ref: "#/definitions/Reference" }] }, uniqueItems: true }, requestBody: { oneOf: [{ $ref: "#/definitions/RequestBody" }, { $ref: "#/definitions/Reference" }] }, responses: { $ref: "#/definitions/Responses" }, callbacks: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Callback" }, { $ref: "#/definitions/Reference" }] } }, deprecated: { type: "boolean", default: false }, security: { type: "array", items: { $ref: "#/definitions/SecurityRequirement" } }, servers: { type: "array", items: { $ref: "#/definitions/Server" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Responses: { type: "object", properties: { default: { oneOf: [{ $ref: "#/definitions/Response" }, { $ref: "#/definitions/Reference" }] } }, patternProperties: { "^[1-5](?:\\d{2}|XX)$": { oneOf: [{ $ref: "#/definitions/Response" }, { $ref: "#/definitions/Reference" }] }, "^x-": {} }, minProperties: 1, additionalProperties: false }, SecurityRequirement: { type: "object", additionalProperties: { type: "array", items: { type: "string" } } }, Tag: { type: "object", required: ["name"], properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ExternalDocumentation: { type: "object", required: ["url"], properties: { description: { type: "string" }, url: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ExampleXORExamples: { description: "Example and examples are mutually exclusive", not: { required: ["example", "examples"] } }, SchemaXORContent: { description: "Schema and content are mutually exclusive, at least one is required", not: { required: ["schema", "content"] }, oneOf: [{ required: ["schema"] }, { required: ["content"], description: "Some properties are not allowed if content is present", allOf: [{ not: { required: ["style"] } }, { not: { required: ["explode"] } }, { not: { required: ["allowReserved"] } }, { not: { required: ["example"] } }, { not: { required: ["examples"] } }] }] }, Parameter: { type: "object", properties: { name: { type: "string" }, in: { type: "string" }, description: { type: "string" }, required: { type: "boolean", default: false }, deprecated: { type: "boolean", default: false }, allowEmptyValue: { type: "boolean", default: false }, style: { type: "string" }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false }, schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" }, minProperties: 1, maxProperties: 1 }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false, required: ["name", "in"], allOf: [{ $ref: "#/definitions/ExampleXORExamples" }, { $ref: "#/definitions/SchemaXORContent" }, { $ref: "#/definitions/ParameterLocation" }] }, ParameterLocation: { description: "Parameter location", oneOf: [{ description: "Parameter in path", required: ["required"], properties: { in: { enum: ["path"] }, style: { enum: ["matrix", "label", "simple"], default: "simple" }, required: { enum: [true] } } }, { description: "Parameter in query", properties: { in: { enum: ["query"] }, style: { enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"], default: "form" } } }, { description: "Parameter in header", properties: { in: { enum: ["header"] }, style: { enum: ["simple"], default: "simple" } } }, { description: "Parameter in cookie", properties: { in: { enum: ["cookie"] }, style: { enum: ["form"], default: "form" } } }] }, RequestBody: { type: "object", required: ["content"], properties: { description: { type: "string" }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" } }, required: { type: "boolean", default: false } }, patternProperties: { "^x-": {} }, additionalProperties: false }, SecurityScheme: { oneOf: [{ $ref: "#/definitions/APIKeySecurityScheme" }, { $ref: "#/definitions/HTTPSecurityScheme" }, { $ref: "#/definitions/OAuth2SecurityScheme" }, { $ref: "#/definitions/OpenIdConnectSecurityScheme" }] }, APIKeySecurityScheme: { type: "object", required: ["type", "name", "in"], properties: { type: { type: "string", enum: ["apiKey"] }, name: { type: "string" }, in: { type: "string", enum: ["header", "query", "cookie"] }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, HTTPSecurityScheme: { type: "object", required: ["scheme", "type"], properties: { scheme: { type: "string" }, bearerFormat: { type: "string" }, description: { type: "string" }, type: { type: "string", enum: ["http"] } }, patternProperties: { "^x-": {} }, additionalProperties: false, oneOf: [{ description: "Bearer", properties: { scheme: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } } }, { description: "Non Bearer", not: { required: ["bearerFormat"] }, properties: { scheme: { not: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } } } }] }, OAuth2SecurityScheme: { type: "object", required: ["type", "flows"], properties: { type: { type: "string", enum: ["oauth2"] }, flows: { $ref: "#/definitions/OAuthFlows" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, OpenIdConnectSecurityScheme: { type: "object", required: ["type", "openIdConnectUrl"], properties: { type: { type: "string", enum: ["openIdConnect"] }, openIdConnectUrl: { type: "string", format: "uri-reference" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, OAuthFlows: { type: "object", properties: { implicit: { $ref: "#/definitions/ImplicitOAuthFlow" }, password: { $ref: "#/definitions/PasswordOAuthFlow" }, clientCredentials: { $ref: "#/definitions/ClientCredentialsFlow" }, authorizationCode: { $ref: "#/definitions/AuthorizationCodeOAuthFlow" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ImplicitOAuthFlow: { type: "object", required: ["authorizationUrl", "scopes"], properties: { authorizationUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, PasswordOAuthFlow: { type: "object", required: ["tokenUrl", "scopes"], properties: { tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ClientCredentialsFlow: { type: "object", required: ["tokenUrl", "scopes"], properties: { tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, AuthorizationCodeOAuthFlow: { type: "object", required: ["authorizationUrl", "tokenUrl", "scopes"], properties: { authorizationUrl: { type: "string", format: "uri-reference" }, tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Link: { type: "object", properties: { operationId: { type: "string" }, operationRef: { type: "string", format: "uri-reference" }, parameters: { type: "object", additionalProperties: {} }, requestBody: {}, description: { type: "string" }, server: { $ref: "#/definitions/Server" } }, patternProperties: { "^x-": {} }, additionalProperties: false, not: { description: "Operation Id and Operation Ref are mutually exclusive", required: ["operationId", "operationRef"] } }, Callback: { type: "object", additionalProperties: { $ref: "#/definitions/PathItem" }, patternProperties: { "^x-": {} } }, Encoding: { type: "object", properties: { contentType: { type: "string" }, headers: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Header" }, { $ref: "#/definitions/Reference" }] } }, style: { type: "string", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false } }, additionalProperties: false } }, d$1 = { id: e$9, $schema: t$f, description: r$a, type: i$5, required: n$8, properties: o$6, patternProperties: p$3, additionalProperties: s$2, definitions: a$4 };
10
- var e$8 = "https://spec.openapis.org/oas/3.1/schema/2022-10-07", t$e = "https://json-schema.org/draft/2020-12/schema", r$9 = "The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0", s$1 = "object", o$5 = { openapi: { type: "string", pattern: "^3\\.1\\.\\d+(-.+)?$" }, info: { $ref: "#/$defs/info" }, jsonSchemaDialect: { type: "string", format: "uri", default: "https://spec.openapis.org/oas/3.1/dialect/base" }, servers: { type: "array", items: { $ref: "#/$defs/server" }, default: [{ url: "/" }] }, paths: { $ref: "#/$defs/paths" }, webhooks: { type: "object", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } }, components: { $ref: "#/$defs/components" }, security: { type: "array", items: { $ref: "#/$defs/security-requirement" } }, tags: { type: "array", items: { $ref: "#/$defs/tag" } }, externalDocs: { $ref: "#/$defs/external-documentation" } }, i$4 = ["openapi", "info"], p$2 = [{ required: ["paths"] }, { required: ["components"] }, { required: ["webhooks"] }], n$7 = "#/$defs/specification-extensions", a$3 = false, f$4 = { info: { $comment: "https://spec.openapis.org/oas/v3.1.0#info-object", type: "object", properties: { title: { type: "string" }, summary: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri" }, contact: { $ref: "#/$defs/contact" }, license: { $ref: "#/$defs/license" }, version: { type: "string" } }, required: ["title", "version"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, contact: { $comment: "https://spec.openapis.org/oas/v3.1.0#contact-object", type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, email: { type: "string", format: "email" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, license: { $comment: "https://spec.openapis.org/oas/v3.1.0#license-object", type: "object", properties: { name: { type: "string" }, identifier: { type: "string" }, url: { type: "string", format: "uri" } }, required: ["name"], dependentSchemas: { identifier: { not: { required: ["url"] } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, server: { $comment: "https://spec.openapis.org/oas/v3.1.0#server-object", type: "object", properties: { url: { type: "string", format: "uri-reference" }, description: { type: "string" }, variables: { type: "object", additionalProperties: { $ref: "#/$defs/server-variable" } } }, required: ["url"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "server-variable": { $comment: "https://spec.openapis.org/oas/v3.1.0#server-variable-object", type: "object", properties: { enum: { type: "array", items: { type: "string" }, minItems: 1 }, default: { type: "string" }, description: { type: "string" } }, required: ["default"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, components: { $comment: "https://spec.openapis.org/oas/v3.1.0#components-object", type: "object", properties: { schemas: { type: "object", additionalProperties: { $ref: "#/$defs/schema" } }, responses: { type: "object", additionalProperties: { $ref: "#/$defs/response-or-reference" } }, parameters: { type: "object", additionalProperties: { $ref: "#/$defs/parameter-or-reference" } }, examples: { type: "object", additionalProperties: { $ref: "#/$defs/example-or-reference" } }, requestBodies: { type: "object", additionalProperties: { $ref: "#/$defs/request-body-or-reference" } }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, securitySchemes: { type: "object", additionalProperties: { $ref: "#/$defs/security-scheme-or-reference" } }, links: { type: "object", additionalProperties: { $ref: "#/$defs/link-or-reference" } }, callbacks: { type: "object", additionalProperties: { $ref: "#/$defs/callbacks-or-reference" } }, pathItems: { type: "object", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } } }, patternProperties: { "^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$": { $comment: "Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected", propertyNames: { pattern: "^[a-zA-Z0-9._-]+$" } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, paths: { $comment: "https://spec.openapis.org/oas/v3.1.0#paths-object", type: "object", patternProperties: { "^/": { $ref: "#/$defs/path-item" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "path-item": { $comment: "https://spec.openapis.org/oas/v3.1.0#path-item-object", type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, servers: { type: "array", items: { $ref: "#/$defs/server" } }, parameters: { type: "array", items: { $ref: "#/$defs/parameter-or-reference" } }, get: { $ref: "#/$defs/operation" }, put: { $ref: "#/$defs/operation" }, post: { $ref: "#/$defs/operation" }, delete: { $ref: "#/$defs/operation" }, options: { $ref: "#/$defs/operation" }, head: { $ref: "#/$defs/operation" }, patch: { $ref: "#/$defs/operation" }, trace: { $ref: "#/$defs/operation" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "path-item-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/path-item" } }, operation: { $comment: "https://spec.openapis.org/oas/v3.1.0#operation-object", type: "object", properties: { tags: { type: "array", items: { type: "string" } }, summary: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/$defs/external-documentation" }, operationId: { type: "string" }, parameters: { type: "array", items: { $ref: "#/$defs/parameter-or-reference" } }, requestBody: { $ref: "#/$defs/request-body-or-reference" }, responses: { $ref: "#/$defs/responses" }, callbacks: { type: "object", additionalProperties: { $ref: "#/$defs/callbacks-or-reference" } }, deprecated: { default: false, type: "boolean" }, security: { type: "array", items: { $ref: "#/$defs/security-requirement" } }, servers: { type: "array", items: { $ref: "#/$defs/server" } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "external-documentation": { $comment: "https://spec.openapis.org/oas/v3.1.0#external-documentation-object", type: "object", properties: { description: { type: "string" }, url: { type: "string", format: "uri" } }, required: ["url"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, parameter: { $comment: "https://spec.openapis.org/oas/v3.1.0#parameter-object", type: "object", properties: { name: { type: "string" }, in: { enum: ["query", "header", "path", "cookie"] }, description: { type: "string" }, required: { default: false, type: "boolean" }, deprecated: { default: false, type: "boolean" }, schema: { $ref: "#/$defs/schema" }, content: { $ref: "#/$defs/content", minProperties: 1, maxProperties: 1 } }, required: ["name", "in"], oneOf: [{ required: ["schema"] }, { required: ["content"] }], if: { properties: { in: { const: "query" } }, required: ["in"] }, then: { properties: { allowEmptyValue: { default: false, type: "boolean" } } }, dependentSchemas: { schema: { properties: { style: { type: "string" }, explode: { type: "boolean" } }, allOf: [{ $ref: "#/$defs/examples" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form" }], $defs: { "styles-for-path": { if: { properties: { in: { const: "path" } }, required: ["in"] }, then: { properties: { name: { pattern: "[^/#?]+$" }, style: { default: "simple", enum: ["matrix", "label", "simple"] }, required: { const: true } }, required: ["required"] } }, "styles-for-header": { if: { properties: { in: { const: "header" } }, required: ["in"] }, then: { properties: { style: { default: "simple", const: "simple" } } } }, "styles-for-query": { if: { properties: { in: { const: "query" } }, required: ["in"] }, then: { properties: { style: { default: "form", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, allowReserved: { default: false, type: "boolean" } } } }, "styles-for-cookie": { if: { properties: { in: { const: "cookie" } }, required: ["in"] }, then: { properties: { style: { default: "form", const: "form" } } } }, "styles-for-form": { if: { properties: { style: { const: "form" } }, required: ["style"] }, then: { properties: { explode: { default: true } } }, else: { properties: { explode: { default: false } } } } } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "parameter-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/parameter" } }, "request-body": { $comment: "https://spec.openapis.org/oas/v3.1.0#request-body-object", type: "object", properties: { description: { type: "string" }, content: { $ref: "#/$defs/content" }, required: { default: false, type: "boolean" } }, required: ["content"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "request-body-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/request-body" } }, content: { $comment: "https://spec.openapis.org/oas/v3.1.0#fixed-fields-10", type: "object", additionalProperties: { $ref: "#/$defs/media-type" }, propertyNames: { format: "media-range" } }, "media-type": { $comment: "https://spec.openapis.org/oas/v3.1.0#media-type-object", type: "object", properties: { schema: { $ref: "#/$defs/schema" }, encoding: { type: "object", additionalProperties: { $ref: "#/$defs/encoding" } } }, allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/examples" }], unevaluatedProperties: false }, encoding: { $comment: "https://spec.openapis.org/oas/v3.1.0#encoding-object", type: "object", properties: { contentType: { type: "string", format: "media-range" }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, style: { default: "form", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, explode: { type: "boolean" }, allowReserved: { default: false, type: "boolean" } }, allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/encoding/$defs/explode-default" }], unevaluatedProperties: false, $defs: { "explode-default": { if: { properties: { style: { const: "form" } }, required: ["style"] }, then: { properties: { explode: { default: true } } }, else: { properties: { explode: { default: false } } } } } }, responses: { $comment: "https://spec.openapis.org/oas/v3.1.0#responses-object", type: "object", properties: { default: { $ref: "#/$defs/response-or-reference" } }, patternProperties: { "^[1-5](?:[0-9]{2}|XX)$": { $ref: "#/$defs/response-or-reference" } }, minProperties: 1, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, response: { $comment: "https://spec.openapis.org/oas/v3.1.0#response-object", type: "object", properties: { description: { type: "string" }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, content: { $ref: "#/$defs/content" }, links: { type: "object", additionalProperties: { $ref: "#/$defs/link-or-reference" } } }, required: ["description"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "response-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/response" } }, callbacks: { $comment: "https://spec.openapis.org/oas/v3.1.0#callback-object", type: "object", $ref: "#/$defs/specification-extensions", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } }, "callbacks-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/callbacks" } }, example: { $comment: "https://spec.openapis.org/oas/v3.1.0#example-object", type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, value: true, externalValue: { type: "string", format: "uri" } }, not: { required: ["value", "externalValue"] }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "example-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/example" } }, link: { $comment: "https://spec.openapis.org/oas/v3.1.0#link-object", type: "object", properties: { operationRef: { type: "string", format: "uri-reference" }, operationId: { type: "string" }, parameters: { $ref: "#/$defs/map-of-strings" }, requestBody: true, description: { type: "string" }, body: { $ref: "#/$defs/server" } }, oneOf: [{ required: ["operationRef"] }, { required: ["operationId"] }], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "link-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/link" } }, header: { $comment: "https://spec.openapis.org/oas/v3.1.0#header-object", type: "object", properties: { description: { type: "string" }, required: { default: false, type: "boolean" }, deprecated: { default: false, type: "boolean" }, schema: { $ref: "#/$defs/schema" }, content: { $ref: "#/$defs/content", minProperties: 1, maxProperties: 1 } }, oneOf: [{ required: ["schema"] }, { required: ["content"] }], dependentSchemas: { schema: { properties: { style: { default: "simple", const: "simple" }, explode: { default: false, type: "boolean" } }, $ref: "#/$defs/examples" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "header-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/header" } }, tag: { $comment: "https://spec.openapis.org/oas/v3.1.0#tag-object", type: "object", properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/$defs/external-documentation" } }, required: ["name"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, reference: { $comment: "https://spec.openapis.org/oas/v3.1.0#reference-object", type: "object", properties: { $ref: { type: "string", format: "uri-reference" }, summary: { type: "string" }, description: { type: "string" } }, unevaluatedProperties: false }, schema: { $comment: "https://spec.openapis.org/oas/v3.1.0#schema-object", $dynamicAnchor: "meta", type: ["object", "boolean"] }, "security-scheme": { $comment: "https://spec.openapis.org/oas/v3.1.0#security-scheme-object", type: "object", properties: { type: { enum: ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"] }, description: { type: "string" } }, required: ["type"], allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/security-scheme/$defs/type-apikey" }, { $ref: "#/$defs/security-scheme/$defs/type-http" }, { $ref: "#/$defs/security-scheme/$defs/type-http-bearer" }, { $ref: "#/$defs/security-scheme/$defs/type-oauth2" }, { $ref: "#/$defs/security-scheme/$defs/type-oidc" }], unevaluatedProperties: false, $defs: { "type-apikey": { if: { properties: { type: { const: "apiKey" } }, required: ["type"] }, then: { properties: { name: { type: "string" }, in: { enum: ["query", "header", "cookie"] } }, required: ["name", "in"] } }, "type-http": { if: { properties: { type: { const: "http" } }, required: ["type"] }, then: { properties: { scheme: { type: "string" } }, required: ["scheme"] } }, "type-http-bearer": { if: { properties: { type: { const: "http" }, scheme: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } }, required: ["type", "scheme"] }, then: { properties: { bearerFormat: { type: "string" } } } }, "type-oauth2": { if: { properties: { type: { const: "oauth2" } }, required: ["type"] }, then: { properties: { flows: { $ref: "#/$defs/oauth-flows" } }, required: ["flows"] } }, "type-oidc": { if: { properties: { type: { const: "openIdConnect" } }, required: ["type"] }, then: { properties: { openIdConnectUrl: { type: "string", format: "uri" } }, required: ["openIdConnectUrl"] } } } }, "security-scheme-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/security-scheme" } }, "oauth-flows": { type: "object", properties: { implicit: { $ref: "#/$defs/oauth-flows/$defs/implicit" }, password: { $ref: "#/$defs/oauth-flows/$defs/password" }, clientCredentials: { $ref: "#/$defs/oauth-flows/$defs/client-credentials" }, authorizationCode: { $ref: "#/$defs/oauth-flows/$defs/authorization-code" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false, $defs: { implicit: { type: "object", properties: { authorizationUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["authorizationUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, password: { type: "object", properties: { tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "client-credentials": { type: "object", properties: { tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "authorization-code": { type: "object", properties: { authorizationUrl: { type: "string", format: "uri" }, tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["authorizationUrl", "tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false } } }, "security-requirement": { $comment: "https://spec.openapis.org/oas/v3.1.0#security-requirement-object", type: "object", additionalProperties: { type: "array", items: { type: "string" } } }, "specification-extensions": { $comment: "https://spec.openapis.org/oas/v3.1.0#specification-extensions", patternProperties: { "^x-": true } }, examples: { properties: { example: true, examples: { type: "object", additionalProperties: { $ref: "#/$defs/example-or-reference" } } } }, "map-of-strings": { type: "object", additionalProperties: { type: "string" } } }, c$1 = { $id: e$8, $schema: t$e, description: r$9, type: s$1, properties: o$5, required: i$4, anyOf: p$2, $ref: n$7, unevaluatedProperties: a$3, $defs: f$4 };
8
+ var e$a = "A JSON Schema for Swagger 2.0 API.", i$6 = "http://swagger.io/v2/schema.json#", t$g = "http://json-schema.org/draft-04/schema#", r$b = "object", n$a = ["swagger", "info", "paths"], o$7 = false, s$3 = { "^x-": { $ref: "#/definitions/vendorExtension" } }, a$5 = { swagger: { type: "string", enum: ["2.0"], description: "The Swagger version of this document." }, info: { $ref: "#/definitions/info" }, host: { type: "string", pattern: "^[^{}/ :\\\\]+(?::\\d+)?$", description: "The host (name or ip) of the API. Example: 'swagger.io'" }, basePath: { type: "string", pattern: "^/", description: "The base path to the API. Example: '/api'." }, schemes: { $ref: "#/definitions/schemesList" }, consumes: { description: "A list of MIME types accepted by the API.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, produces: { description: "A list of MIME types the API can produce.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, paths: { $ref: "#/definitions/paths" }, definitions: { $ref: "#/definitions/definitions" }, parameters: { $ref: "#/definitions/parameterDefinitions" }, responses: { $ref: "#/definitions/responseDefinitions" }, security: { $ref: "#/definitions/security" }, securityDefinitions: { $ref: "#/definitions/securityDefinitions" }, tags: { type: "array", items: { $ref: "#/definitions/tag" }, uniqueItems: true }, externalDocs: { $ref: "#/definitions/externalDocs" } }, p$4 = { info: { type: "object", description: "General information about the API.", required: ["version", "title"], additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { title: { type: "string", description: "A unique and precise title of the API." }, version: { type: "string", description: "A semantic version number of the API." }, description: { type: "string", description: "A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed." }, termsOfService: { type: "string", description: "The terms of service for the API." }, contact: { $ref: "#/definitions/contact" }, license: { $ref: "#/definitions/license" } } }, contact: { type: "object", description: "Contact information for the owners of the API.", additionalProperties: false, properties: { name: { type: "string", description: "The identifying name of the contact person/organization." }, url: { type: "string", description: "The URL pointing to the contact information.", format: "uri" }, email: { type: "string", description: "The email address of the contact person/organization.", format: "email" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, license: { type: "object", required: ["name"], additionalProperties: false, properties: { name: { type: "string", description: "The name of the license type. It's encouraged to use an OSI compatible license." }, url: { type: "string", description: "The URL pointing to the license.", format: "uri" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, paths: { type: "object", description: "Relative paths to the individual endpoints. They must be relative to the 'basePath'.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" }, "^/": { $ref: "#/definitions/pathItem" } }, additionalProperties: false }, definitions: { type: "object", additionalProperties: { $ref: "#/definitions/schema" }, description: "One or more JSON objects describing the schemas being consumed and produced by the API." }, parameterDefinitions: { type: "object", additionalProperties: { $ref: "#/definitions/parameter" }, description: "One or more JSON representations for parameters" }, responseDefinitions: { type: "object", additionalProperties: { $ref: "#/definitions/response" }, description: "One or more JSON representations for responses" }, externalDocs: { type: "object", additionalProperties: false, description: "information about external documentation", required: ["url"], properties: { description: { type: "string" }, url: { type: "string", format: "uri" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, examples: { type: "object", additionalProperties: true }, mimeType: { type: "string", description: "The MIME type of the HTTP message." }, operation: { type: "object", required: ["responses"], additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { tags: { type: "array", items: { type: "string" }, uniqueItems: true }, summary: { type: "string", description: "A brief summary of the operation." }, description: { type: "string", description: "A longer description of the operation, GitHub Flavored Markdown is allowed." }, externalDocs: { $ref: "#/definitions/externalDocs" }, operationId: { type: "string", description: "A unique identifier of the operation." }, produces: { description: "A list of MIME types the API can produce.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, consumes: { description: "A list of MIME types the API can consume.", allOf: [{ $ref: "#/definitions/mediaTypeList" }] }, parameters: { $ref: "#/definitions/parametersList" }, responses: { $ref: "#/definitions/responses" }, schemes: { $ref: "#/definitions/schemesList" }, deprecated: { type: "boolean", default: false }, security: { $ref: "#/definitions/security" } } }, pathItem: { type: "object", additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { $ref: { type: "string" }, get: { $ref: "#/definitions/operation" }, put: { $ref: "#/definitions/operation" }, post: { $ref: "#/definitions/operation" }, delete: { $ref: "#/definitions/operation" }, options: { $ref: "#/definitions/operation" }, head: { $ref: "#/definitions/operation" }, patch: { $ref: "#/definitions/operation" }, parameters: { $ref: "#/definitions/parametersList" } } }, responses: { type: "object", description: "Response objects names can either be any valid HTTP status code or 'default'.", minProperties: 1, additionalProperties: false, patternProperties: { "^([0-9]{3})$|^(default)$": { $ref: "#/definitions/responseValue" }, "^x-": { $ref: "#/definitions/vendorExtension" } }, not: { type: "object", additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } } }, responseValue: { oneOf: [{ $ref: "#/definitions/response" }, { $ref: "#/definitions/jsonReference" }] }, response: { type: "object", required: ["description"], properties: { description: { type: "string" }, schema: { oneOf: [{ $ref: "#/definitions/schema" }, { $ref: "#/definitions/fileSchema" }] }, headers: { $ref: "#/definitions/headers" }, examples: { $ref: "#/definitions/examples" } }, additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, headers: { type: "object", additionalProperties: { $ref: "#/definitions/header" } }, header: { type: "object", additionalProperties: false, required: ["type"], properties: { type: { type: "string", enum: ["string", "number", "integer", "boolean", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, vendorExtension: { description: "Any property starting with x- is valid.", additionalProperties: true, additionalItems: true }, bodyParameter: { type: "object", required: ["name", "in", "schema"], patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["body"] }, required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, schema: { $ref: "#/definitions/schema" } }, additionalProperties: false }, headerParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["header"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, queryParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["query"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, allowEmptyValue: { type: "boolean", default: false, description: "allows sending a parameter by name only or with an empty value." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormatWithMulti" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, formDataParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { required: { type: "boolean", description: "Determines whether or not this parameter is required or optional.", default: false }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["formData"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, allowEmptyValue: { type: "boolean", default: false, description: "allows sending a parameter by name only or with an empty value." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array", "file"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormatWithMulti" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, pathParameterSubSchema: { additionalProperties: false, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, required: ["required"], properties: { required: { type: "boolean", enum: [true], description: "Determines whether or not this parameter is required or optional." }, in: { type: "string", description: "Determines the location of the parameter.", enum: ["path"] }, description: { type: "string", description: "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, name: { type: "string", description: "The name of the parameter." }, type: { type: "string", enum: ["string", "number", "boolean", "integer", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } } }, nonBodyParameter: { type: "object", required: ["name", "in", "type"], oneOf: [{ $ref: "#/definitions/headerParameterSubSchema" }, { $ref: "#/definitions/formDataParameterSubSchema" }, { $ref: "#/definitions/queryParameterSubSchema" }, { $ref: "#/definitions/pathParameterSubSchema" }] }, parameter: { oneOf: [{ $ref: "#/definitions/bodyParameter" }, { $ref: "#/definitions/nonBodyParameter" }] }, schema: { type: "object", description: "A deterministic version of a JSON Schema object.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, properties: { $ref: { type: "string" }, format: { type: "string" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, multipleOf: { $ref: "http://json-schema.org/draft-04/schema#/properties/multipleOf" }, maximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/maximum" }, exclusiveMaximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" }, minimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/minimum" }, exclusiveMinimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" }, maxLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, pattern: { $ref: "http://json-schema.org/draft-04/schema#/properties/pattern" }, maxItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, uniqueItems: { $ref: "http://json-schema.org/draft-04/schema#/properties/uniqueItems" }, maxProperties: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minProperties: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, required: { $ref: "http://json-schema.org/draft-04/schema#/definitions/stringArray" }, enum: { $ref: "http://json-schema.org/draft-04/schema#/properties/enum" }, additionalProperties: { anyOf: [{ $ref: "#/definitions/schema" }, { type: "boolean" }], default: {} }, type: { $ref: "http://json-schema.org/draft-04/schema#/properties/type" }, items: { anyOf: [{ $ref: "#/definitions/schema" }, { type: "array", minItems: 1, items: { $ref: "#/definitions/schema" } }], default: {} }, allOf: { type: "array", minItems: 1, items: { $ref: "#/definitions/schema" } }, properties: { type: "object", additionalProperties: { $ref: "#/definitions/schema" }, default: {} }, discriminator: { type: "string" }, readOnly: { type: "boolean", default: false }, xml: { $ref: "#/definitions/xml" }, externalDocs: { $ref: "#/definitions/externalDocs" }, example: {} }, additionalProperties: false }, fileSchema: { type: "object", description: "A deterministic version of a JSON Schema object.", patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } }, required: ["type"], properties: { format: { type: "string" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, required: { $ref: "http://json-schema.org/draft-04/schema#/definitions/stringArray" }, type: { type: "string", enum: ["file"] }, readOnly: { type: "boolean", default: false }, externalDocs: { $ref: "#/definitions/externalDocs" }, example: {} }, additionalProperties: false }, primitivesItems: { type: "object", additionalProperties: false, properties: { type: { type: "string", enum: ["string", "number", "integer", "boolean", "array"] }, format: { type: "string" }, items: { $ref: "#/definitions/primitivesItems" }, collectionFormat: { $ref: "#/definitions/collectionFormat" }, default: { $ref: "#/definitions/default" }, maximum: { $ref: "#/definitions/maximum" }, exclusiveMaximum: { $ref: "#/definitions/exclusiveMaximum" }, minimum: { $ref: "#/definitions/minimum" }, exclusiveMinimum: { $ref: "#/definitions/exclusiveMinimum" }, maxLength: { $ref: "#/definitions/maxLength" }, minLength: { $ref: "#/definitions/minLength" }, pattern: { $ref: "#/definitions/pattern" }, maxItems: { $ref: "#/definitions/maxItems" }, minItems: { $ref: "#/definitions/minItems" }, uniqueItems: { $ref: "#/definitions/uniqueItems" }, enum: { $ref: "#/definitions/enum" }, multipleOf: { $ref: "#/definitions/multipleOf" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, security: { type: "array", items: { $ref: "#/definitions/securityRequirement" }, uniqueItems: true }, securityRequirement: { type: "object", additionalProperties: { type: "array", items: { type: "string" }, uniqueItems: true } }, xml: { type: "object", additionalProperties: false, properties: { name: { type: "string" }, namespace: { type: "string" }, prefix: { type: "string" }, attribute: { type: "boolean", default: false }, wrapped: { type: "boolean", default: false } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, tag: { type: "object", additionalProperties: false, required: ["name"], properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/externalDocs" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, securityDefinitions: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/basicAuthenticationSecurity" }, { $ref: "#/definitions/apiKeySecurity" }, { $ref: "#/definitions/oauth2ImplicitSecurity" }, { $ref: "#/definitions/oauth2PasswordSecurity" }, { $ref: "#/definitions/oauth2ApplicationSecurity" }, { $ref: "#/definitions/oauth2AccessCodeSecurity" }] } }, basicAuthenticationSecurity: { type: "object", additionalProperties: false, required: ["type"], properties: { type: { type: "string", enum: ["basic"] }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, apiKeySecurity: { type: "object", additionalProperties: false, required: ["type", "name", "in"], properties: { type: { type: "string", enum: ["apiKey"] }, name: { type: "string" }, in: { type: "string", enum: ["header", "query"] }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2ImplicitSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "authorizationUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["implicit"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, authorizationUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2PasswordSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["password"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2ApplicationSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["application"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2AccessCodeSecurity: { type: "object", additionalProperties: false, required: ["type", "flow", "authorizationUrl", "tokenUrl"], properties: { type: { type: "string", enum: ["oauth2"] }, flow: { type: "string", enum: ["accessCode"] }, scopes: { $ref: "#/definitions/oauth2Scopes" }, authorizationUrl: { type: "string", format: "uri" }, tokenUrl: { type: "string", format: "uri" }, description: { type: "string" } }, patternProperties: { "^x-": { $ref: "#/definitions/vendorExtension" } } }, oauth2Scopes: { type: "object", additionalProperties: { type: "string" } }, mediaTypeList: { type: "array", items: { $ref: "#/definitions/mimeType" }, uniqueItems: true }, parametersList: { type: "array", description: "The parameters needed to send a valid API call.", additionalItems: false, items: { oneOf: [{ $ref: "#/definitions/parameter" }, { $ref: "#/definitions/jsonReference" }] }, uniqueItems: true }, schemesList: { type: "array", description: "The transfer protocol of the API.", items: { type: "string", enum: ["http", "https", "ws", "wss"] }, uniqueItems: true }, collectionFormat: { type: "string", enum: ["csv", "ssv", "tsv", "pipes"], default: "csv" }, collectionFormatWithMulti: { type: "string", enum: ["csv", "ssv", "tsv", "pipes", "multi"], default: "csv" }, title: { $ref: "http://json-schema.org/draft-04/schema#/properties/title" }, description: { $ref: "http://json-schema.org/draft-04/schema#/properties/description" }, default: { $ref: "http://json-schema.org/draft-04/schema#/properties/default" }, multipleOf: { $ref: "http://json-schema.org/draft-04/schema#/properties/multipleOf" }, maximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/maximum" }, exclusiveMaximum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" }, minimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/minimum" }, exclusiveMinimum: { $ref: "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" }, maxLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minLength: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, pattern: { $ref: "http://json-schema.org/draft-04/schema#/properties/pattern" }, maxItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" }, minItems: { $ref: "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" }, uniqueItems: { $ref: "http://json-schema.org/draft-04/schema#/properties/uniqueItems" }, enum: { $ref: "http://json-schema.org/draft-04/schema#/properties/enum" }, jsonReference: { type: "object", required: ["$ref"], additionalProperties: false, properties: { $ref: { type: "string" } } } }, m$1 = { title: e$a, id: i$6, $schema: t$g, type: r$b, required: n$a, additionalProperties: o$7, patternProperties: s$3, properties: a$5, definitions: p$4 };
9
+ var e$9 = "https://spec.openapis.org/oas/3.0/schema/2021-09-28", t$f = "http://json-schema.org/draft-04/schema#", r$a = "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3", i$5 = "object", n$9 = ["openapi", "info", "paths"], o$6 = { openapi: { type: "string", pattern: "^3\\.0\\.\\d(-.+)?$" }, info: { $ref: "#/definitions/Info" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, servers: { type: "array", items: { $ref: "#/definitions/Server" } }, security: { type: "array", items: { $ref: "#/definitions/SecurityRequirement" } }, tags: { type: "array", items: { $ref: "#/definitions/Tag" }, uniqueItems: true }, paths: { $ref: "#/definitions/Paths" }, components: { $ref: "#/definitions/Components" } }, p$3 = { "^x-": {} }, s$2 = false, a$4 = { Reference: { type: "object", required: ["$ref"], patternProperties: { "^\\$ref$": { type: "string", format: "uri-reference" } } }, Info: { type: "object", required: ["title", "version"], properties: { title: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri-reference" }, contact: { $ref: "#/definitions/Contact" }, license: { $ref: "#/definitions/License" }, version: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Contact: { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri-reference" }, email: { type: "string", format: "email" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, License: { type: "object", required: ["name"], properties: { name: { type: "string" }, url: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Server: { type: "object", required: ["url"], properties: { url: { type: "string" }, description: { type: "string" }, variables: { type: "object", additionalProperties: { $ref: "#/definitions/ServerVariable" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ServerVariable: { type: "object", required: ["default"], properties: { enum: { type: "array", items: { type: "string" } }, default: { type: "string" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Components: { type: "object", properties: { schemas: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } } }, responses: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Response" }] } } }, parameters: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Parameter" }] } } }, examples: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Example" }] } } }, requestBodies: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/RequestBody" }] } } }, headers: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Header" }] } } }, securitySchemes: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/SecurityScheme" }] } } }, links: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Link" }] } } }, callbacks: { type: "object", patternProperties: { "^[a-zA-Z0-9\\.\\-_]+$": { oneOf: [{ $ref: "#/definitions/Reference" }, { $ref: "#/definitions/Callback" }] } } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Schema: { type: "object", properties: { title: { type: "string" }, multipleOf: { type: "number", minimum: 0, exclusiveMinimum: true }, maximum: { type: "number" }, exclusiveMaximum: { type: "boolean", default: false }, minimum: { type: "number" }, exclusiveMinimum: { type: "boolean", default: false }, maxLength: { type: "integer", minimum: 0 }, minLength: { type: "integer", minimum: 0, default: 0 }, pattern: { type: "string", format: "regex" }, maxItems: { type: "integer", minimum: 0 }, minItems: { type: "integer", minimum: 0, default: 0 }, uniqueItems: { type: "boolean", default: false }, maxProperties: { type: "integer", minimum: 0 }, minProperties: { type: "integer", minimum: 0, default: 0 }, required: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: true }, enum: { type: "array", items: {}, minItems: 1, uniqueItems: false }, type: { type: "string", enum: ["array", "boolean", "integer", "number", "object", "string"] }, not: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, allOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, oneOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, anyOf: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, items: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, properties: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] } }, additionalProperties: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }, { type: "boolean" }], default: true }, description: { type: "string" }, format: { type: "string" }, default: {}, nullable: { type: "boolean", default: false }, discriminator: { $ref: "#/definitions/Discriminator" }, readOnly: { type: "boolean", default: false }, writeOnly: { type: "boolean", default: false }, example: {}, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, deprecated: { type: "boolean", default: false }, xml: { $ref: "#/definitions/XML" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Discriminator: { type: "object", required: ["propertyName"], properties: { propertyName: { type: "string" }, mapping: { type: "object", additionalProperties: { type: "string" } } } }, XML: { type: "object", properties: { name: { type: "string" }, namespace: { type: "string", format: "uri" }, prefix: { type: "string" }, attribute: { type: "boolean", default: false }, wrapped: { type: "boolean", default: false } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Response: { type: "object", required: ["description"], properties: { description: { type: "string" }, headers: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Header" }, { $ref: "#/definitions/Reference" }] } }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" } }, links: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Link" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, MediaType: { type: "object", properties: { schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } }, encoding: { type: "object", additionalProperties: { $ref: "#/definitions/Encoding" } } }, patternProperties: { "^x-": {} }, additionalProperties: false, allOf: [{ $ref: "#/definitions/ExampleXORExamples" }] }, Example: { type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, value: {}, externalValue: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Header: { type: "object", properties: { description: { type: "string" }, required: { type: "boolean", default: false }, deprecated: { type: "boolean", default: false }, allowEmptyValue: { type: "boolean", default: false }, style: { type: "string", enum: ["simple"], default: "simple" }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false }, schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" }, minProperties: 1, maxProperties: 1 }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false, allOf: [{ $ref: "#/definitions/ExampleXORExamples" }, { $ref: "#/definitions/SchemaXORContent" }] }, Paths: { type: "object", patternProperties: { "^\\/": { $ref: "#/definitions/PathItem" }, "^x-": {} }, additionalProperties: false }, PathItem: { type: "object", properties: { $ref: { type: "string" }, summary: { type: "string" }, description: { type: "string" }, servers: { type: "array", items: { $ref: "#/definitions/Server" } }, parameters: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Parameter" }, { $ref: "#/definitions/Reference" }] }, uniqueItems: true } }, patternProperties: { "^(get|put|post|delete|options|head|patch|trace)$": { $ref: "#/definitions/Operation" }, "^x-": {} }, additionalProperties: false }, Operation: { type: "object", required: ["responses"], properties: { tags: { type: "array", items: { type: "string" } }, summary: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" }, operationId: { type: "string" }, parameters: { type: "array", items: { oneOf: [{ $ref: "#/definitions/Parameter" }, { $ref: "#/definitions/Reference" }] }, uniqueItems: true }, requestBody: { oneOf: [{ $ref: "#/definitions/RequestBody" }, { $ref: "#/definitions/Reference" }] }, responses: { $ref: "#/definitions/Responses" }, callbacks: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Callback" }, { $ref: "#/definitions/Reference" }] } }, deprecated: { type: "boolean", default: false }, security: { type: "array", items: { $ref: "#/definitions/SecurityRequirement" } }, servers: { type: "array", items: { $ref: "#/definitions/Server" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Responses: { type: "object", properties: { default: { oneOf: [{ $ref: "#/definitions/Response" }, { $ref: "#/definitions/Reference" }] } }, patternProperties: { "^[1-5](?:\\d{2}|XX)$": { oneOf: [{ $ref: "#/definitions/Response" }, { $ref: "#/definitions/Reference" }] }, "^x-": {} }, minProperties: 1, additionalProperties: false }, SecurityRequirement: { type: "object", additionalProperties: { type: "array", items: { type: "string" } } }, Tag: { type: "object", required: ["name"], properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/definitions/ExternalDocumentation" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ExternalDocumentation: { type: "object", required: ["url"], properties: { description: { type: "string" }, url: { type: "string", format: "uri-reference" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ExampleXORExamples: { description: "Example and examples are mutually exclusive", not: { required: ["example", "examples"] } }, SchemaXORContent: { description: "Schema and content are mutually exclusive, at least one is required", not: { required: ["schema", "content"] }, oneOf: [{ required: ["schema"] }, { required: ["content"], description: "Some properties are not allowed if content is present", allOf: [{ not: { required: ["style"] } }, { not: { required: ["explode"] } }, { not: { required: ["allowReserved"] } }, { not: { required: ["example"] } }, { not: { required: ["examples"] } }] }] }, Parameter: { type: "object", properties: { name: { type: "string" }, in: { type: "string" }, description: { type: "string" }, required: { type: "boolean", default: false }, deprecated: { type: "boolean", default: false }, allowEmptyValue: { type: "boolean", default: false }, style: { type: "string" }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false }, schema: { oneOf: [{ $ref: "#/definitions/Schema" }, { $ref: "#/definitions/Reference" }] }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" }, minProperties: 1, maxProperties: 1 }, example: {}, examples: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Example" }, { $ref: "#/definitions/Reference" }] } } }, patternProperties: { "^x-": {} }, additionalProperties: false, required: ["name", "in"], allOf: [{ $ref: "#/definitions/ExampleXORExamples" }, { $ref: "#/definitions/SchemaXORContent" }, { $ref: "#/definitions/ParameterLocation" }] }, ParameterLocation: { description: "Parameter location", oneOf: [{ description: "Parameter in path", required: ["required"], properties: { in: { enum: ["path"] }, style: { enum: ["matrix", "label", "simple"], default: "simple" }, required: { enum: [true] } } }, { description: "Parameter in query", properties: { in: { enum: ["query"] }, style: { enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"], default: "form" } } }, { description: "Parameter in header", properties: { in: { enum: ["header"] }, style: { enum: ["simple"], default: "simple" } } }, { description: "Parameter in cookie", properties: { in: { enum: ["cookie"] }, style: { enum: ["form"], default: "form" } } }] }, RequestBody: { type: "object", required: ["content"], properties: { description: { type: "string" }, content: { type: "object", additionalProperties: { $ref: "#/definitions/MediaType" } }, required: { type: "boolean", default: false } }, patternProperties: { "^x-": {} }, additionalProperties: false }, SecurityScheme: { oneOf: [{ $ref: "#/definitions/APIKeySecurityScheme" }, { $ref: "#/definitions/HTTPSecurityScheme" }, { $ref: "#/definitions/OAuth2SecurityScheme" }, { $ref: "#/definitions/OpenIdConnectSecurityScheme" }] }, APIKeySecurityScheme: { type: "object", required: ["type", "name", "in"], properties: { type: { type: "string", enum: ["apiKey"] }, name: { type: "string" }, in: { type: "string", enum: ["header", "query", "cookie"] }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, HTTPSecurityScheme: { type: "object", required: ["scheme", "type"], properties: { scheme: { type: "string" }, bearerFormat: { type: "string" }, description: { type: "string" }, type: { type: "string", enum: ["http"] } }, patternProperties: { "^x-": {} }, additionalProperties: false, oneOf: [{ description: "Bearer", properties: { scheme: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } } }, { description: "Non Bearer", not: { required: ["bearerFormat"] }, properties: { scheme: { not: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } } } }] }, OAuth2SecurityScheme: { type: "object", required: ["type", "flows"], properties: { type: { type: "string", enum: ["oauth2"] }, flows: { $ref: "#/definitions/OAuthFlows" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, OpenIdConnectSecurityScheme: { type: "object", required: ["type", "openIdConnectUrl"], properties: { type: { type: "string", enum: ["openIdConnect"] }, openIdConnectUrl: { type: "string", format: "uri-reference" }, description: { type: "string" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, OAuthFlows: { type: "object", properties: { implicit: { $ref: "#/definitions/ImplicitOAuthFlow" }, password: { $ref: "#/definitions/PasswordOAuthFlow" }, clientCredentials: { $ref: "#/definitions/ClientCredentialsFlow" }, authorizationCode: { $ref: "#/definitions/AuthorizationCodeOAuthFlow" } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ImplicitOAuthFlow: { type: "object", required: ["authorizationUrl", "scopes"], properties: { authorizationUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, PasswordOAuthFlow: { type: "object", required: ["tokenUrl", "scopes"], properties: { tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, ClientCredentialsFlow: { type: "object", required: ["tokenUrl", "scopes"], properties: { tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, AuthorizationCodeOAuthFlow: { type: "object", required: ["authorizationUrl", "tokenUrl", "scopes"], properties: { authorizationUrl: { type: "string", format: "uri-reference" }, tokenUrl: { type: "string", format: "uri-reference" }, refreshUrl: { type: "string", format: "uri-reference" }, scopes: { type: "object", additionalProperties: { type: "string" } } }, patternProperties: { "^x-": {} }, additionalProperties: false }, Link: { type: "object", properties: { operationId: { type: "string" }, operationRef: { type: "string", format: "uri-reference" }, parameters: { type: "object", additionalProperties: {} }, requestBody: {}, description: { type: "string" }, server: { $ref: "#/definitions/Server" } }, patternProperties: { "^x-": {} }, additionalProperties: false, not: { description: "Operation Id and Operation Ref are mutually exclusive", required: ["operationId", "operationRef"] } }, Callback: { type: "object", additionalProperties: { $ref: "#/definitions/PathItem" }, patternProperties: { "^x-": {} } }, Encoding: { type: "object", properties: { contentType: { type: "string" }, headers: { type: "object", additionalProperties: { oneOf: [{ $ref: "#/definitions/Header" }, { $ref: "#/definitions/Reference" }] } }, style: { type: "string", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, explode: { type: "boolean" }, allowReserved: { type: "boolean", default: false } }, additionalProperties: false } }, d$1 = { id: e$9, $schema: t$f, description: r$a, type: i$5, required: n$9, properties: o$6, patternProperties: p$3, additionalProperties: s$2, definitions: a$4 };
10
+ var e$8 = "https://spec.openapis.org/oas/3.1/schema/2022-10-07", t$e = "https://json-schema.org/draft/2020-12/schema", r$9 = "The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0", s$1 = "object", o$5 = { openapi: { type: "string", pattern: "^3\\.1\\.\\d+(-.+)?$" }, info: { $ref: "#/$defs/info" }, jsonSchemaDialect: { type: "string", format: "uri", default: "https://spec.openapis.org/oas/3.1/dialect/base" }, servers: { type: "array", items: { $ref: "#/$defs/server" }, default: [{ url: "/" }] }, paths: { $ref: "#/$defs/paths" }, webhooks: { type: "object", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } }, components: { $ref: "#/$defs/components" }, security: { type: "array", items: { $ref: "#/$defs/security-requirement" } }, tags: { type: "array", items: { $ref: "#/$defs/tag" } }, externalDocs: { $ref: "#/$defs/external-documentation" } }, i$4 = ["openapi", "info"], p$2 = [{ required: ["paths"] }, { required: ["components"] }, { required: ["webhooks"] }], n$8 = "#/$defs/specification-extensions", a$3 = false, f$4 = { info: { $comment: "https://spec.openapis.org/oas/v3.1.0#info-object", type: "object", properties: { title: { type: "string" }, summary: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri" }, contact: { $ref: "#/$defs/contact" }, license: { $ref: "#/$defs/license" }, version: { type: "string" } }, required: ["title", "version"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, contact: { $comment: "https://spec.openapis.org/oas/v3.1.0#contact-object", type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, email: { type: "string", format: "email" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, license: { $comment: "https://spec.openapis.org/oas/v3.1.0#license-object", type: "object", properties: { name: { type: "string" }, identifier: { type: "string" }, url: { type: "string", format: "uri" } }, required: ["name"], dependentSchemas: { identifier: { not: { required: ["url"] } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, server: { $comment: "https://spec.openapis.org/oas/v3.1.0#server-object", type: "object", properties: { url: { type: "string" }, description: { type: "string" }, variables: { type: "object", additionalProperties: { $ref: "#/$defs/server-variable" } } }, required: ["url"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "server-variable": { $comment: "https://spec.openapis.org/oas/v3.1.0#server-variable-object", type: "object", properties: { enum: { type: "array", items: { type: "string" }, minItems: 1 }, default: { type: "string" }, description: { type: "string" } }, required: ["default"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, components: { $comment: "https://spec.openapis.org/oas/v3.1.0#components-object", type: "object", properties: { schemas: { type: "object", additionalProperties: { $ref: "#/$defs/schema" } }, responses: { type: "object", additionalProperties: { $ref: "#/$defs/response-or-reference" } }, parameters: { type: "object", additionalProperties: { $ref: "#/$defs/parameter-or-reference" } }, examples: { type: "object", additionalProperties: { $ref: "#/$defs/example-or-reference" } }, requestBodies: { type: "object", additionalProperties: { $ref: "#/$defs/request-body-or-reference" } }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, securitySchemes: { type: "object", additionalProperties: { $ref: "#/$defs/security-scheme-or-reference" } }, links: { type: "object", additionalProperties: { $ref: "#/$defs/link-or-reference" } }, callbacks: { type: "object", additionalProperties: { $ref: "#/$defs/callbacks-or-reference" } }, pathItems: { type: "object", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } } }, patternProperties: { "^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$": { $comment: "Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected", propertyNames: { pattern: "^[a-zA-Z0-9._-]+$" } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, paths: { $comment: "https://spec.openapis.org/oas/v3.1.0#paths-object", type: "object", patternProperties: { "^/": { $ref: "#/$defs/path-item" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "path-item": { $comment: "https://spec.openapis.org/oas/v3.1.0#path-item-object", type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, servers: { type: "array", items: { $ref: "#/$defs/server" } }, parameters: { type: "array", items: { $ref: "#/$defs/parameter-or-reference" } }, get: { $ref: "#/$defs/operation" }, put: { $ref: "#/$defs/operation" }, post: { $ref: "#/$defs/operation" }, delete: { $ref: "#/$defs/operation" }, options: { $ref: "#/$defs/operation" }, head: { $ref: "#/$defs/operation" }, patch: { $ref: "#/$defs/operation" }, trace: { $ref: "#/$defs/operation" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "path-item-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/path-item" } }, operation: { $comment: "https://spec.openapis.org/oas/v3.1.0#operation-object", type: "object", properties: { tags: { type: "array", items: { type: "string" } }, summary: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/$defs/external-documentation" }, operationId: { type: "string" }, parameters: { type: "array", items: { $ref: "#/$defs/parameter-or-reference" } }, requestBody: { $ref: "#/$defs/request-body-or-reference" }, responses: { $ref: "#/$defs/responses" }, callbacks: { type: "object", additionalProperties: { $ref: "#/$defs/callbacks-or-reference" } }, deprecated: { default: false, type: "boolean" }, security: { type: "array", items: { $ref: "#/$defs/security-requirement" } }, servers: { type: "array", items: { $ref: "#/$defs/server" } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "external-documentation": { $comment: "https://spec.openapis.org/oas/v3.1.0#external-documentation-object", type: "object", properties: { description: { type: "string" }, url: { type: "string", format: "uri" } }, required: ["url"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, parameter: { $comment: "https://spec.openapis.org/oas/v3.1.0#parameter-object", type: "object", properties: { name: { type: "string" }, in: { enum: ["query", "header", "path", "cookie"] }, description: { type: "string" }, required: { default: false, type: "boolean" }, deprecated: { default: false, type: "boolean" }, schema: { $ref: "#/$defs/schema" }, content: { $ref: "#/$defs/content", minProperties: 1, maxProperties: 1 } }, required: ["name", "in"], oneOf: [{ required: ["schema"] }, { required: ["content"] }], if: { properties: { in: { const: "query" } }, required: ["in"] }, then: { properties: { allowEmptyValue: { default: false, type: "boolean" } } }, dependentSchemas: { schema: { properties: { style: { type: "string" }, explode: { type: "boolean" } }, allOf: [{ $ref: "#/$defs/examples" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie" }, { $ref: "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form" }], $defs: { "styles-for-path": { if: { properties: { in: { const: "path" } }, required: ["in"] }, then: { properties: { name: { pattern: "[^/#?]+$" }, style: { default: "simple", enum: ["matrix", "label", "simple"] }, required: { const: true } }, required: ["required"] } }, "styles-for-header": { if: { properties: { in: { const: "header" } }, required: ["in"] }, then: { properties: { style: { default: "simple", const: "simple" } } } }, "styles-for-query": { if: { properties: { in: { const: "query" } }, required: ["in"] }, then: { properties: { style: { default: "form", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, allowReserved: { default: false, type: "boolean" } } } }, "styles-for-cookie": { if: { properties: { in: { const: "cookie" } }, required: ["in"] }, then: { properties: { style: { default: "form", const: "form" } } } }, "styles-for-form": { if: { properties: { style: { const: "form" } }, required: ["style"] }, then: { properties: { explode: { default: true } } }, else: { properties: { explode: { default: false } } } } } } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "parameter-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/parameter" } }, "request-body": { $comment: "https://spec.openapis.org/oas/v3.1.0#request-body-object", type: "object", properties: { description: { type: "string" }, content: { $ref: "#/$defs/content" }, required: { default: false, type: "boolean" } }, required: ["content"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "request-body-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/request-body" } }, content: { $comment: "https://spec.openapis.org/oas/v3.1.0#fixed-fields-10", type: "object", additionalProperties: { $ref: "#/$defs/media-type" }, propertyNames: { format: "media-range" } }, "media-type": { $comment: "https://spec.openapis.org/oas/v3.1.0#media-type-object", type: "object", properties: { schema: { $ref: "#/$defs/schema" }, encoding: { type: "object", additionalProperties: { $ref: "#/$defs/encoding" } } }, allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/examples" }], unevaluatedProperties: false }, encoding: { $comment: "https://spec.openapis.org/oas/v3.1.0#encoding-object", type: "object", properties: { contentType: { type: "string", format: "media-range" }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, style: { default: "form", enum: ["form", "spaceDelimited", "pipeDelimited", "deepObject"] }, explode: { type: "boolean" }, allowReserved: { default: false, type: "boolean" } }, allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/encoding/$defs/explode-default" }], unevaluatedProperties: false, $defs: { "explode-default": { if: { properties: { style: { const: "form" } }, required: ["style"] }, then: { properties: { explode: { default: true } } }, else: { properties: { explode: { default: false } } } } } }, responses: { $comment: "https://spec.openapis.org/oas/v3.1.0#responses-object", type: "object", properties: { default: { $ref: "#/$defs/response-or-reference" } }, patternProperties: { "^[1-5](?:[0-9]{2}|XX)$": { $ref: "#/$defs/response-or-reference" } }, minProperties: 1, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, response: { $comment: "https://spec.openapis.org/oas/v3.1.0#response-object", type: "object", properties: { description: { type: "string" }, headers: { type: "object", additionalProperties: { $ref: "#/$defs/header-or-reference" } }, content: { $ref: "#/$defs/content" }, links: { type: "object", additionalProperties: { $ref: "#/$defs/link-or-reference" } } }, required: ["description"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "response-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/response" } }, callbacks: { $comment: "https://spec.openapis.org/oas/v3.1.0#callback-object", type: "object", $ref: "#/$defs/specification-extensions", additionalProperties: { $ref: "#/$defs/path-item-or-reference" } }, "callbacks-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/callbacks" } }, example: { $comment: "https://spec.openapis.org/oas/v3.1.0#example-object", type: "object", properties: { summary: { type: "string" }, description: { type: "string" }, value: true, externalValue: { type: "string", format: "uri" } }, not: { required: ["value", "externalValue"] }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "example-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/example" } }, link: { $comment: "https://spec.openapis.org/oas/v3.1.0#link-object", type: "object", properties: { operationRef: { type: "string", format: "uri-reference" }, operationId: { type: "string" }, parameters: { $ref: "#/$defs/map-of-strings" }, requestBody: true, description: { type: "string" }, body: { $ref: "#/$defs/server" } }, oneOf: [{ required: ["operationRef"] }, { required: ["operationId"] }], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "link-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/link" } }, header: { $comment: "https://spec.openapis.org/oas/v3.1.0#header-object", type: "object", properties: { description: { type: "string" }, required: { default: false, type: "boolean" }, deprecated: { default: false, type: "boolean" }, schema: { $ref: "#/$defs/schema" }, content: { $ref: "#/$defs/content", minProperties: 1, maxProperties: 1 } }, oneOf: [{ required: ["schema"] }, { required: ["content"] }], dependentSchemas: { schema: { properties: { style: { default: "simple", const: "simple" }, explode: { default: false, type: "boolean" } }, $ref: "#/$defs/examples" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "header-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/header" } }, tag: { $comment: "https://spec.openapis.org/oas/v3.1.0#tag-object", type: "object", properties: { name: { type: "string" }, description: { type: "string" }, externalDocs: { $ref: "#/$defs/external-documentation" } }, required: ["name"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, reference: { $comment: "https://spec.openapis.org/oas/v3.1.0#reference-object", type: "object", properties: { $ref: { type: "string", format: "uri-reference" }, summary: { type: "string" }, description: { type: "string" } }, unevaluatedProperties: false }, schema: { $comment: "https://spec.openapis.org/oas/v3.1.0#schema-object", $dynamicAnchor: "meta", type: ["object", "boolean"] }, "security-scheme": { $comment: "https://spec.openapis.org/oas/v3.1.0#security-scheme-object", type: "object", properties: { type: { enum: ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"] }, description: { type: "string" } }, required: ["type"], allOf: [{ $ref: "#/$defs/specification-extensions" }, { $ref: "#/$defs/security-scheme/$defs/type-apikey" }, { $ref: "#/$defs/security-scheme/$defs/type-http" }, { $ref: "#/$defs/security-scheme/$defs/type-http-bearer" }, { $ref: "#/$defs/security-scheme/$defs/type-oauth2" }, { $ref: "#/$defs/security-scheme/$defs/type-oidc" }], unevaluatedProperties: false, $defs: { "type-apikey": { if: { properties: { type: { const: "apiKey" } }, required: ["type"] }, then: { properties: { name: { type: "string" }, in: { enum: ["query", "header", "cookie"] } }, required: ["name", "in"] } }, "type-http": { if: { properties: { type: { const: "http" } }, required: ["type"] }, then: { properties: { scheme: { type: "string" } }, required: ["scheme"] } }, "type-http-bearer": { if: { properties: { type: { const: "http" }, scheme: { type: "string", pattern: "^[Bb][Ee][Aa][Rr][Ee][Rr]$" } }, required: ["type", "scheme"] }, then: { properties: { bearerFormat: { type: "string" } } } }, "type-oauth2": { if: { properties: { type: { const: "oauth2" } }, required: ["type"] }, then: { properties: { flows: { $ref: "#/$defs/oauth-flows" } }, required: ["flows"] } }, "type-oidc": { if: { properties: { type: { const: "openIdConnect" } }, required: ["type"] }, then: { properties: { openIdConnectUrl: { type: "string", format: "uri" } }, required: ["openIdConnectUrl"] } } } }, "security-scheme-or-reference": { if: { type: "object", required: ["$ref"] }, then: { $ref: "#/$defs/reference" }, else: { $ref: "#/$defs/security-scheme" } }, "oauth-flows": { type: "object", properties: { implicit: { $ref: "#/$defs/oauth-flows/$defs/implicit" }, password: { $ref: "#/$defs/oauth-flows/$defs/password" }, clientCredentials: { $ref: "#/$defs/oauth-flows/$defs/client-credentials" }, authorizationCode: { $ref: "#/$defs/oauth-flows/$defs/authorization-code" } }, $ref: "#/$defs/specification-extensions", unevaluatedProperties: false, $defs: { implicit: { type: "object", properties: { authorizationUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["authorizationUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, password: { type: "object", properties: { tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "client-credentials": { type: "object", properties: { tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false }, "authorization-code": { type: "object", properties: { authorizationUrl: { type: "string", format: "uri" }, tokenUrl: { type: "string", format: "uri" }, refreshUrl: { type: "string", format: "uri" }, scopes: { $ref: "#/$defs/map-of-strings" } }, required: ["authorizationUrl", "tokenUrl", "scopes"], $ref: "#/$defs/specification-extensions", unevaluatedProperties: false } } }, "security-requirement": { $comment: "https://spec.openapis.org/oas/v3.1.0#security-requirement-object", type: "object", additionalProperties: { type: "array", items: { type: "string" } } }, "specification-extensions": { $comment: "https://spec.openapis.org/oas/v3.1.0#specification-extensions", patternProperties: { "^x-": true } }, examples: { properties: { example: true, examples: { type: "object", additionalProperties: { $ref: "#/$defs/example-or-reference" } } } }, "map-of-strings": { type: "object", additionalProperties: { type: "string" } } }, c$1 = { $id: e$8, $schema: t$e, description: r$9, type: s$1, properties: o$5, required: i$4, anyOf: p$2, $ref: n$8, unevaluatedProperties: a$3, $defs: f$4 };
11
11
  const o$4 = { "2.0": m$1, "3.0": d$1, 3.1: c$1 }, r$8 = Object.keys(o$4), t$d = { EMPTY_OR_INVALID: "Can’t find JSON, YAML or filename in data", OPENAPI_VERSION_NOT_SUPPORTED: "Can’t find supported Swagger/OpenAPI version in specification, version must be a string.", INVALID_REFERENCE: "Can’t resolve reference: %s", EXTERNAL_REFERENCE_NOT_FOUND: "Can’t resolve external reference: %s", FILE_DOES_NOT_EXIST: "File does not exist: %s", NO_CONTENT: "No content found" };
12
12
  function getDefaultExportFromCjs(x) {
13
13
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1285,7 +1285,7 @@ names$1.default = names;
1285
1285
  gen.return(false);
1286
1286
  }
1287
1287
  }
1288
- const E2 = {
1288
+ const E = {
1289
1289
  keyword: new codegen_12.Name("keyword"),
1290
1290
  schemaPath: new codegen_12.Name("schemaPath"),
1291
1291
  // also used in JTD errors
@@ -1319,20 +1319,20 @@ names$1.default = names;
1319
1319
  if (schemaPath) {
1320
1320
  schPath = (0, codegen_12.str)`${schPath}${(0, util_12.getErrorPath)(schemaPath, util_12.Type.Str)}`;
1321
1321
  }
1322
- return [E2.schemaPath, schPath];
1322
+ return [E.schemaPath, schPath];
1323
1323
  }
1324
1324
  function extraErrorProps(cxt, { params, message }, keyValues) {
1325
1325
  const { keyword: keyword2, data, schemaValue, it } = cxt;
1326
1326
  const { opts, propertyName, topSchemaRef, schemaPath } = it;
1327
- keyValues.push([E2.keyword, keyword2], [E2.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
1327
+ keyValues.push([E.keyword, keyword2], [E.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
1328
1328
  if (opts.messages) {
1329
- keyValues.push([E2.message, typeof message == "function" ? message(cxt) : message]);
1329
+ keyValues.push([E.message, typeof message == "function" ? message(cxt) : message]);
1330
1330
  }
1331
1331
  if (opts.verbose) {
1332
- keyValues.push([E2.schema, schemaValue], [E2.parentSchema, (0, codegen_12._)`${topSchemaRef}${schemaPath}`], [names_12.default.data, data]);
1332
+ keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_12._)`${topSchemaRef}${schemaPath}`], [names_12.default.data, data]);
1333
1333
  }
1334
1334
  if (propertyName)
1335
- keyValues.push([E2.propertyName, propertyName]);
1335
+ keyValues.push([E.propertyName, propertyName]);
1336
1336
  }
1337
1337
  })(errors);
1338
1338
  Object.defineProperty(boolSchema, "__esModule", { value: true });
@@ -7730,13 +7730,13 @@ function o$2(o2) {
7730
7730
  }
7731
7731
  return { version: void 0, specificationType: void 0, specificationVersion: void 0 };
7732
7732
  }
7733
- function n$6(n2) {
7733
+ function n$7(n2) {
7734
7734
  return n2 == null ? void 0 : n2.find((n3) => n3.isEntrypoint);
7735
7735
  }
7736
7736
  function e$7(e4) {
7737
7737
  return decodeURI(e4.replace(/~1/g, "/").replace(/~0/g, "~"));
7738
7738
  }
7739
- function n$5(n2) {
7739
+ function n$6(n2) {
7740
7740
  return n2.split("/").slice(1).map(e$7);
7741
7741
  }
7742
7742
  function t$c(o2, e4) {
@@ -13699,15 +13699,15 @@ function t$b(t5, n2 = {}) {
13699
13699
  const o2 = e$5(t5);
13700
13700
  return [{ isEntrypoint: true, specification: o2, filename: null, dir: "./", references: e$6(o2), ...n2 }];
13701
13701
  }
13702
- function i$2(e4, t5, i2, n2) {
13703
- void 0 === n2 && (n2 = []);
13704
- const s2 = structuredClone(e4), c2 = t$b(s2), f2 = n$6(c2);
13705
- return a3((i2 == null ? void 0 : i2.specification) ?? f2.specification, c2, i2 ?? f2), a3((i2 == null ? void 0 : i2.specification) ?? f2.specification, c2, i2 ?? f2), { valid: 0 === (n2 = n2.filter((e5, r3, t6) => r3 === t6.findIndex((r4) => r4.message === e5.message && r4.code === e5.code))).length, errors: n2, schema: (i2 ?? n$6(c2)).specification };
13702
+ function i$2(e4, t5, i2, E) {
13703
+ void 0 === E && (E = []);
13704
+ const s2 = structuredClone(e4), c2 = t$b(s2), f2 = n$7(c2);
13705
+ return a3((i2 == null ? void 0 : i2.specification) ?? f2.specification, c2, i2 ?? f2), a3((i2 == null ? void 0 : i2.specification) ?? f2.specification, c2, i2 ?? f2), { valid: 0 === (E = E.filter((e5, r3, t6) => r3 === t6.findIndex((r4) => r4.message === e5.message && r4.code === e5.code))).length, errors: E, schema: (i2 ?? n$7(c2)).specification };
13706
13706
  function a3(e5, r3, o2) {
13707
13707
  let i3;
13708
13708
  return Object.entries(e5 ?? {}).forEach(([s3, c3]) => {
13709
13709
  if (void 0 !== e5.$ref) {
13710
- const i4 = E(e5.$ref, t5, o2, r3, n2);
13710
+ const i4 = n$5(e5.$ref, t5, o2, r3, E);
13711
13711
  if (void 0 === i4) return;
13712
13712
  delete e5.$ref, "object" == typeof i4 && Object.keys(i4).forEach((r4) => {
13713
13713
  void 0 === e5[r4] && (e5[r4] = i4[r4]);
@@ -13723,24 +13723,24 @@ function i$2(e4, t5, i2, n2) {
13723
13723
  }), { errors: (i3 == null ? void 0 : i3.errors) ?? [] };
13724
13724
  }
13725
13725
  }
13726
- function E(r3, o2, n2, s2, c2) {
13726
+ function n$5(r3, o2, E, s2, c2) {
13727
13727
  if ("string" != typeof r3) {
13728
13728
  if (o2 == null ? void 0 : o2.throwOnError) throw new Error(t$d.INVALID_REFERENCE.replace("%s", r3));
13729
13729
  return void c2.push({ code: "INVALID_REFERENCE", message: t$d.INVALID_REFERENCE.replace("%s", r3) });
13730
13730
  }
13731
- const [f2, a3] = r3.split("#", 2);
13732
- if (f2) {
13731
+ const [f2, a3] = r3.split("#", 2), p2 = f2 !== E.filename;
13732
+ if (f2 && p2) {
13733
13733
  const r4 = s2.find((e4) => e4.filename === f2);
13734
13734
  if (!r4) {
13735
13735
  if (o2 == null ? void 0 : o2.throwOnError) throw new Error(t$d.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s", f2));
13736
13736
  return void c2.push({ code: "EXTERNAL_REFERENCE_NOT_FOUND", message: t$d.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s", f2) });
13737
13737
  }
13738
13738
  const t5 = i$2(s2, o2, r4, c2);
13739
- return void 0 === a3 ? t5.schema : E(`#${a3}`, o2, r4, s2, c2);
13739
+ return void 0 === a3 ? t5.schema : n$5(`#${a3}`, o2, r4, s2, c2);
13740
13740
  }
13741
- const p2 = n$5(a3);
13741
+ const N = n$6(a3);
13742
13742
  try {
13743
- return p2.reduce((e4, r4) => e4[r4], n2.specification);
13743
+ return N.reduce((e4, r4) => e4[r4], E.specification);
13744
13744
  } catch (t5) {
13745
13745
  if (o2 == null ? void 0 : o2.throwOnError) throw new Error(t$d.INVALID_REFERENCE.replace("%s", r3));
13746
13746
  c2.push({ code: "INVALID_REFERENCE", message: t$d.INVALID_REFERENCE.replace("%s", r3) });
@@ -14048,17 +14048,17 @@ class h {
14048
14048
  }
14049
14049
  __publicField(h, "supportedVersions", r$8);
14050
14050
  async function i$1(i2, t5) {
14051
- const c2 = t$b(i2), m2 = n$6(c2), n2 = i$2(c2, t5);
14051
+ const c2 = t$b(i2), m2 = n$7(c2), n2 = i$2(c2, t5);
14052
14052
  return { specification: m2.specification, errors: n2.errors, schema: n2.schema, ...o$2(m2.specification) };
14053
14053
  }
14054
14054
  function r$1(r3, e4) {
14055
14055
  const s2 = t$b(r3);
14056
- return { specification: t$c(n$6(s2).specification, (t5) => e4(t5) ? t5 : void 0) };
14056
+ return { specification: t$c(n$7(s2).specification, (t5) => e4(t5) ? t5 : void 0) };
14057
14057
  }
14058
14058
  async function n$3(o2, f2) {
14059
14059
  var _a, _b, _c, _d, _e, _f;
14060
14060
  const c2 = [];
14061
- if ((_a = f2 == null ? void 0 : f2.filesystem) == null ? void 0 : _a.find((e4) => e4.filename === o2)) return { specification: (_b = n$6(f2.filesystem)) == null ? void 0 : _b.specification, filesystem: f2.filesystem, errors: c2 };
14061
+ if ((_a = f2 == null ? void 0 : f2.filesystem) == null ? void 0 : _a.find((e4) => e4.filename === o2)) return { specification: (_b = n$7(f2.filesystem)) == null ? void 0 : _b.specification, filesystem: f2.filesystem, errors: c2 };
14062
14062
  const l = (_c = f2 == null ? void 0 : f2.plugins) == null ? void 0 : _c.find((e4) => e4.check(o2));
14063
14063
  let a3;
14064
14064
  if (l) try {
@@ -14073,9 +14073,9 @@ async function n$3(o2, f2) {
14073
14073
  return c2.push({ code: "NO_CONTENT", message: t$d.NO_CONTENT }), { specification: null, filesystem: [], errors: c2 };
14074
14074
  }
14075
14075
  let m2 = t$b(a3, { filename: (f2 == null ? void 0 : f2.filename) ?? null });
14076
- const E2 = ((f2 == null ? void 0 : f2.filename) ? m2.find((e4) => e4.filename === (f2 == null ? void 0 : f2.filename)) : n$6(m2)).references ?? e$6(a3);
14077
- if (0 === E2.length) return { specification: (_d = n$6(m2)) == null ? void 0 : _d.specification, filesystem: m2, errors: c2 };
14078
- for (const e4 of E2) {
14076
+ const E = ((f2 == null ? void 0 : f2.filename) ? m2.find((e4) => e4.filename === (f2 == null ? void 0 : f2.filename)) : n$7(m2)).references ?? e$6(a3);
14077
+ if (0 === E.length) return { specification: (_d = n$7(m2)) == null ? void 0 : _d.specification, filesystem: m2, errors: c2 };
14078
+ for (const e4 of E) {
14079
14079
  const i2 = (_e = f2 == null ? void 0 : f2.plugins) == null ? void 0 : _e.find((i3) => i3.check(e4));
14080
14080
  if (!i2) continue;
14081
14081
  const r3 = i2.check(e4) && i2.resolvePath ? i2.resolvePath(o2, e4) : e4;
@@ -14083,7 +14083,7 @@ async function n$3(o2, f2) {
14083
14083
  const { filesystem: s2, errors: t5 } = await n$3(r3, { ...f2, filename: e4 });
14084
14084
  c2.push(...t5), m2 = [...m2, ...s2.map((e5) => ({ ...e5, isEntrypoint: false }))];
14085
14085
  }
14086
- return { specification: (_f = n$6(m2)) == null ? void 0 : _f.specification, filesystem: m2, errors: c2 };
14086
+ return { specification: (_f = n$7(m2)) == null ? void 0 : _f.specification, filesystem: m2, errors: c2 };
14087
14087
  }
14088
14088
  function t$6(t5) {
14089
14089
  var _a;
@@ -14148,7 +14148,7 @@ function t$5(t5) {
14148
14148
  return t5;
14149
14149
  }
14150
14150
  function t$4(t5) {
14151
- return { specification: [t$5, t$6].reduce((r3, e4) => e4(r3), n$6(t$b(t5)).specification), version: "3.1" };
14151
+ return { specification: [t$5, t$6].reduce((r3, e4) => e4(r3), n$7(t$b(t5)).specification), version: "3.1" };
14152
14152
  }
14153
14153
  async function t$3(t5, a3) {
14154
14154
  const e4 = t$b(t5), r3 = new h();
@@ -14165,7 +14165,7 @@ async function a2(a3) {
14165
14165
  }
14166
14166
  async function r2(r3) {
14167
14167
  const { filesystem: s2 } = await a2(r3);
14168
- return o$2(n$6(s2).specification);
14168
+ return o$2(n$7(s2).specification);
14169
14169
  }
14170
14170
  async function o(o2) {
14171
14171
  const { filesystem: r3 } = await a2(o2);
@@ -14177,12 +14177,12 @@ async function t$2(t5) {
14177
14177
  const n$2 = (n2) => JSON.stringify(n2, null, 2);
14178
14178
  async function s(s2) {
14179
14179
  const { filesystem: i2 } = await a2(s2);
14180
- return n$2(n$6(i2).specification);
14180
+ return n$2(n$7(i2).specification);
14181
14181
  }
14182
14182
  const m = (m2) => stringify(m2);
14183
14183
  async function i(i2) {
14184
14184
  const { filesystem: s2 } = await a2(i2);
14185
- return m(n$6(s2).specification);
14185
+ return m(n$7(s2).specification);
14186
14186
  }
14187
14187
  function t$1(t5, s2) {
14188
14188
  return { ...t5, tasks: [...t5.tasks, s2] };