@kubb/agent 4.33.1 → 4.33.2
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +18 -87
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
- package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
- package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
- package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
- package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
- package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
- package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
- package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
- package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
- package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
- package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
- package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
- package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
- package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
- package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
- package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
- package/.output/server/node_modules/@redocly/config/package.json +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
- package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/colorette/index.js +82 -0
- package/.output/server/node_modules/colorette/package.json +39 -0
- package/.output/server/node_modules/js-levenshtein/index.js +105 -0
- package/.output/server/node_modules/js-levenshtein/package.json +49 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
- package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
- package/.output/server/package.json +9 -1
- package/package.json +16 -16
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Needed for supporting deprecated Reference Docs config options
|
|
3
|
+
// Transferred from https://github.com/Redocly/redocly-cli/blob/main/packages/core/src/types/redocly-yaml.ts
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.deprecatedRefDocsSchema = void 0;
|
|
6
|
+
const ConfigLanguage = {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
label: { type: 'string' },
|
|
10
|
+
lang: {
|
|
11
|
+
enum: [
|
|
12
|
+
'curl',
|
|
13
|
+
'C#',
|
|
14
|
+
'Go',
|
|
15
|
+
'Java',
|
|
16
|
+
'Java8+Apache',
|
|
17
|
+
'JavaScript',
|
|
18
|
+
'Node.js',
|
|
19
|
+
'PHP',
|
|
20
|
+
'Python',
|
|
21
|
+
'R',
|
|
22
|
+
'Ruby',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
required: ['lang'],
|
|
27
|
+
};
|
|
28
|
+
const ConfigLabels = {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
enum: { type: 'string' },
|
|
32
|
+
enumSingleValue: { type: 'string' },
|
|
33
|
+
enumArray: { type: 'string' },
|
|
34
|
+
default: { type: 'string' },
|
|
35
|
+
deprecated: { type: 'string' },
|
|
36
|
+
example: { type: 'string' },
|
|
37
|
+
examples: { type: 'string' },
|
|
38
|
+
nullable: { type: 'string' },
|
|
39
|
+
recursive: { type: 'string' },
|
|
40
|
+
arrayOf: { type: 'string' },
|
|
41
|
+
webhook: { type: 'string' },
|
|
42
|
+
authorizations: { type: 'string' },
|
|
43
|
+
tryItAuthBasicUsername: { type: 'string' },
|
|
44
|
+
tryItAuthBasicPassword: { type: 'string' },
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
const CommonConfigSidebarLinks = {
|
|
48
|
+
type: 'object',
|
|
49
|
+
properties: {
|
|
50
|
+
label: { type: 'string' },
|
|
51
|
+
link: { type: 'string' },
|
|
52
|
+
target: { type: 'string' },
|
|
53
|
+
},
|
|
54
|
+
required: ['label', 'link'],
|
|
55
|
+
};
|
|
56
|
+
const ConfigSidebarLinks = {
|
|
57
|
+
type: 'object',
|
|
58
|
+
properties: {
|
|
59
|
+
beforeInfo: { type: 'array', items: CommonConfigSidebarLinks },
|
|
60
|
+
end: { type: 'array', items: CommonConfigSidebarLinks },
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const CommonThemeColors = {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: {
|
|
66
|
+
main: { type: 'string' },
|
|
67
|
+
light: { type: 'string' },
|
|
68
|
+
dark: { type: 'string' },
|
|
69
|
+
contrastText: { type: 'string' },
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
const CommonColorProps = {
|
|
73
|
+
type: 'object',
|
|
74
|
+
properties: {
|
|
75
|
+
backgroundColor: { type: 'string' },
|
|
76
|
+
borderColor: { type: 'string' },
|
|
77
|
+
color: { type: 'string' },
|
|
78
|
+
tabTextColor: { type: 'string' },
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
const BorderThemeColors = {
|
|
82
|
+
type: 'object',
|
|
83
|
+
properties: pickObjectProps(CommonThemeColors.properties, ['light', 'dark']),
|
|
84
|
+
};
|
|
85
|
+
const HttpColors = {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
basic: { type: 'string' },
|
|
89
|
+
delete: { type: 'string' },
|
|
90
|
+
get: { type: 'string' },
|
|
91
|
+
head: { type: 'string' },
|
|
92
|
+
link: { type: 'string' },
|
|
93
|
+
options: { type: 'string' },
|
|
94
|
+
patch: { type: 'string' },
|
|
95
|
+
post: { type: 'string' },
|
|
96
|
+
put: { type: 'string' },
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
const ResponseColors = {
|
|
100
|
+
type: 'object',
|
|
101
|
+
properties: {
|
|
102
|
+
error: CommonColorProps,
|
|
103
|
+
info: CommonColorProps,
|
|
104
|
+
redirect: CommonColorProps,
|
|
105
|
+
success: CommonColorProps,
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
const SecondaryColors = {
|
|
109
|
+
type: 'object',
|
|
110
|
+
properties: omitObjectProps(CommonThemeColors.properties, ['dark']),
|
|
111
|
+
};
|
|
112
|
+
const TextThemeColors = {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
primary: { type: 'string' },
|
|
116
|
+
secondary: { type: 'string' },
|
|
117
|
+
light: { type: 'string' },
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
const ThemeColors = {
|
|
121
|
+
type: 'object',
|
|
122
|
+
properties: {
|
|
123
|
+
accent: CommonThemeColors,
|
|
124
|
+
border: BorderThemeColors,
|
|
125
|
+
error: CommonThemeColors,
|
|
126
|
+
http: HttpColors,
|
|
127
|
+
primary: CommonThemeColors,
|
|
128
|
+
responses: ResponseColors,
|
|
129
|
+
secondary: SecondaryColors,
|
|
130
|
+
success: CommonThemeColors,
|
|
131
|
+
text: TextThemeColors,
|
|
132
|
+
tonalOffset: { type: 'number' },
|
|
133
|
+
warning: CommonThemeColors,
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
const SizeProps = {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
fontSize: { type: 'string' },
|
|
140
|
+
padding: { type: 'string' },
|
|
141
|
+
minWidth: { type: 'string' },
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
const Sizes = {
|
|
145
|
+
type: 'object',
|
|
146
|
+
properties: {
|
|
147
|
+
small: SizeProps,
|
|
148
|
+
medium: SizeProps,
|
|
149
|
+
large: SizeProps,
|
|
150
|
+
xlarge: SizeProps,
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
const FontConfig = {
|
|
154
|
+
type: 'object',
|
|
155
|
+
properties: {
|
|
156
|
+
fontFamily: { type: 'string' },
|
|
157
|
+
fontSize: { type: 'string' },
|
|
158
|
+
fontWeight: { type: 'string' },
|
|
159
|
+
lineHeight: { type: 'string' },
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
const ButtonsConfig = {
|
|
163
|
+
type: 'object',
|
|
164
|
+
properties: Object.assign(Object.assign({}, omitObjectProps(FontConfig.properties, ['fontSize', 'lineHeight'])), { borderRadius: { type: 'string' }, hoverStyle: { type: 'string' }, boxShadow: { type: 'string' }, hoverBoxShadow: { type: 'string' }, sizes: Sizes }),
|
|
165
|
+
};
|
|
166
|
+
const BadgeFontConfig = {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: pickObjectProps(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
169
|
+
};
|
|
170
|
+
const BadgeSizes = {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
medium: BadgeFontConfig,
|
|
174
|
+
small: BadgeFontConfig,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
const HttpBadgesConfig = {
|
|
178
|
+
type: 'object',
|
|
179
|
+
properties: Object.assign(Object.assign({}, omitObjectProps(FontConfig.properties, ['fontSize', 'lineHeight'])), { borderRadius: { type: 'string' }, color: { type: 'string' }, sizes: BadgeSizes }),
|
|
180
|
+
};
|
|
181
|
+
const LabelControls = {
|
|
182
|
+
type: 'object',
|
|
183
|
+
properties: {
|
|
184
|
+
top: { type: 'string' },
|
|
185
|
+
width: { type: 'string' },
|
|
186
|
+
height: { type: 'string' },
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
const Panels = {
|
|
190
|
+
type: 'object',
|
|
191
|
+
properties: {
|
|
192
|
+
borderRadius: { type: 'string' },
|
|
193
|
+
backgroundColor: { type: 'string' },
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
const TryItButton = {
|
|
197
|
+
type: 'object',
|
|
198
|
+
properties: {
|
|
199
|
+
fullWidth: { type: 'boolean' },
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
const ConfigThemeComponents = {
|
|
203
|
+
type: 'object',
|
|
204
|
+
properties: {
|
|
205
|
+
buttons: ButtonsConfig,
|
|
206
|
+
httpBadges: HttpBadgesConfig,
|
|
207
|
+
layoutControls: LabelControls,
|
|
208
|
+
panels: Panels,
|
|
209
|
+
tryItButton: TryItButton,
|
|
210
|
+
tryItSendButton: TryItButton,
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
const Breakpoints = {
|
|
214
|
+
type: 'object',
|
|
215
|
+
properties: {
|
|
216
|
+
small: { type: 'string' },
|
|
217
|
+
medium: { type: 'string' },
|
|
218
|
+
large: { type: 'string' },
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
const StackedConfig = {
|
|
222
|
+
type: 'object',
|
|
223
|
+
properties: {
|
|
224
|
+
maxWidth: Breakpoints,
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
const ThreePanelConfig = {
|
|
228
|
+
type: 'object',
|
|
229
|
+
properties: {
|
|
230
|
+
maxWidth: Breakpoints,
|
|
231
|
+
middlePanelMaxWidth: Breakpoints,
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
const Layout = {
|
|
235
|
+
type: 'object',
|
|
236
|
+
properties: {
|
|
237
|
+
showDarkRightPanel: { type: 'boolean' },
|
|
238
|
+
stacked: StackedConfig,
|
|
239
|
+
'three-panel': ThreePanelConfig,
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
const SchemaColorsConfig = {
|
|
243
|
+
type: 'object',
|
|
244
|
+
properties: {
|
|
245
|
+
backgroundColor: { type: 'string' },
|
|
246
|
+
border: { type: 'string' },
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
const ConfigThemeSchema = {
|
|
250
|
+
type: 'object',
|
|
251
|
+
properties: {
|
|
252
|
+
breakFieldNames: { type: 'boolean' },
|
|
253
|
+
caretColor: { type: 'string' },
|
|
254
|
+
caretSize: { type: 'string' },
|
|
255
|
+
constraints: SchemaColorsConfig,
|
|
256
|
+
defaultDetailsWidth: { type: 'string' },
|
|
257
|
+
examples: SchemaColorsConfig,
|
|
258
|
+
labelsTextSize: { type: 'string' },
|
|
259
|
+
linesColor: { type: 'string' },
|
|
260
|
+
nestedBackground: { type: 'string' },
|
|
261
|
+
nestingSpacing: { type: 'string' },
|
|
262
|
+
requireLabelColor: { type: 'string' },
|
|
263
|
+
typeNameColor: { type: 'string' },
|
|
264
|
+
typeTitleColor: { type: 'string' },
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
const GroupItemsConfig = {
|
|
268
|
+
type: 'object',
|
|
269
|
+
properties: {
|
|
270
|
+
subItemsColor: { type: 'string' },
|
|
271
|
+
textTransform: { type: 'string' },
|
|
272
|
+
fontWeight: { type: 'string' },
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
const Level1Items = {
|
|
276
|
+
type: 'object',
|
|
277
|
+
properties: pickObjectProps(GroupItemsConfig.properties, ['textTransform']),
|
|
278
|
+
};
|
|
279
|
+
const SpacingConfig = {
|
|
280
|
+
type: 'object',
|
|
281
|
+
properties: {
|
|
282
|
+
unit: { type: 'number' },
|
|
283
|
+
paddingHorizontal: { type: 'string' },
|
|
284
|
+
paddingVertical: { type: 'string' },
|
|
285
|
+
offsetTop: { type: 'string' },
|
|
286
|
+
offsetLeft: { type: 'string' },
|
|
287
|
+
offsetNesting: { type: 'string' },
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
const Sidebar = {
|
|
291
|
+
type: 'object',
|
|
292
|
+
properties: Object.assign(Object.assign({}, omitObjectProps(FontConfig.properties, ['fontWeight', 'lineHeight'])), { activeBgColor: { type: 'string' }, activeTextColor: { type: 'string' }, backgroundColor: { type: 'string' }, borderRadius: { type: 'string' }, breakPath: { type: 'boolean' }, caretColor: { type: 'string' }, caretSize: { type: 'string' }, groupItems: GroupItemsConfig, level1items: Level1Items, rightLineColor: { type: 'string' }, separatorLabelColor: { type: 'string' }, showAtBreakpoint: { type: 'string' }, spacing: SpacingConfig, textColor: { type: 'string' }, width: { type: 'string' } }),
|
|
293
|
+
};
|
|
294
|
+
const Heading = {
|
|
295
|
+
type: 'object',
|
|
296
|
+
properties: Object.assign(Object.assign({}, FontConfig.properties), { color: { type: 'string' }, transform: { type: 'string' } }),
|
|
297
|
+
};
|
|
298
|
+
const CodeConfig = {
|
|
299
|
+
type: 'object',
|
|
300
|
+
properties: Object.assign(Object.assign({}, FontConfig.properties), { backgroundColor: { type: 'string' }, color: { type: 'string' }, wordBreak: {
|
|
301
|
+
type: 'string',
|
|
302
|
+
enum: [
|
|
303
|
+
'break-all',
|
|
304
|
+
'break-word',
|
|
305
|
+
'keep-all',
|
|
306
|
+
'normal',
|
|
307
|
+
'revert',
|
|
308
|
+
'unset',
|
|
309
|
+
'inherit',
|
|
310
|
+
'initial',
|
|
311
|
+
],
|
|
312
|
+
}, wrap: { type: 'boolean' } }),
|
|
313
|
+
};
|
|
314
|
+
const HeadingsConfig = {
|
|
315
|
+
type: 'object',
|
|
316
|
+
properties: omitObjectProps(FontConfig.properties, ['fontSize']),
|
|
317
|
+
};
|
|
318
|
+
const LinksConfig = {
|
|
319
|
+
type: 'object',
|
|
320
|
+
properties: {
|
|
321
|
+
color: { type: 'string' },
|
|
322
|
+
hover: { type: 'string' },
|
|
323
|
+
textDecoration: { type: 'string' },
|
|
324
|
+
hoverTextDecoration: { type: 'string' },
|
|
325
|
+
visited: { type: 'string' },
|
|
326
|
+
},
|
|
327
|
+
};
|
|
328
|
+
const Typography = {
|
|
329
|
+
type: 'object',
|
|
330
|
+
properties: Object.assign(Object.assign({ code: CodeConfig, fieldName: FontConfig }, pickObjectProps(FontConfig.properties, ['fontSize', 'fontFamily'])), { fontWeightBold: { type: 'string' }, fontWeightLight: { type: 'string' }, fontWeightRegular: { type: 'string' }, heading1: Heading, heading2: Heading, heading3: Heading, headings: HeadingsConfig, lineHeight: { type: 'string' }, links: LinksConfig, optimizeSpeed: { type: 'boolean' }, rightPanelHeading: Heading, smoothing: {
|
|
331
|
+
type: 'string',
|
|
332
|
+
enum: ['auto', 'none', 'antialiased', 'subpixel-antialiased', 'grayscale'],
|
|
333
|
+
} }),
|
|
334
|
+
};
|
|
335
|
+
const TokenProps = {
|
|
336
|
+
type: 'object',
|
|
337
|
+
properties: Object.assign({ color: { type: 'string' } }, omitObjectProps(FontConfig.properties, ['fontWeight'])),
|
|
338
|
+
};
|
|
339
|
+
const CodeBlock = {
|
|
340
|
+
type: 'object',
|
|
341
|
+
properties: {
|
|
342
|
+
backgroundColor: { type: 'string' },
|
|
343
|
+
borderRadius: { type: 'string' },
|
|
344
|
+
tokens: TokenProps,
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
const ConfigThemeLogo = {
|
|
348
|
+
type: 'object',
|
|
349
|
+
properties: {
|
|
350
|
+
gutter: { type: 'string' },
|
|
351
|
+
maxHeight: { type: 'string' },
|
|
352
|
+
maxWidth: { type: 'string' },
|
|
353
|
+
},
|
|
354
|
+
};
|
|
355
|
+
const Fab = {
|
|
356
|
+
type: 'object',
|
|
357
|
+
properties: {
|
|
358
|
+
backgroundColor: { type: 'string' },
|
|
359
|
+
color: { type: 'string' },
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
const ButtonOverrides = {
|
|
363
|
+
type: 'object',
|
|
364
|
+
properties: {
|
|
365
|
+
custom: { type: 'string' },
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
const Overrides = {
|
|
369
|
+
type: 'object',
|
|
370
|
+
properties: {
|
|
371
|
+
DownloadButton: ButtonOverrides,
|
|
372
|
+
NextSectionButton: ButtonOverrides,
|
|
373
|
+
},
|
|
374
|
+
};
|
|
375
|
+
const RightPanel = {
|
|
376
|
+
type: 'object',
|
|
377
|
+
properties: {
|
|
378
|
+
backgroundColor: { type: 'string' },
|
|
379
|
+
panelBackgroundColor: { type: 'string' },
|
|
380
|
+
panelControlsBackgroundColor: { type: 'string' },
|
|
381
|
+
showAtBreakpoint: { type: 'string' },
|
|
382
|
+
textColor: { type: 'string' },
|
|
383
|
+
width: { type: 'string' },
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
const Shape = {
|
|
387
|
+
type: 'object',
|
|
388
|
+
properties: { borderRadius: { type: 'string' } },
|
|
389
|
+
};
|
|
390
|
+
const ThemeSpacing = {
|
|
391
|
+
type: 'object',
|
|
392
|
+
properties: {
|
|
393
|
+
sectionHorizontal: { type: 'number' },
|
|
394
|
+
sectionVertical: { type: 'number' },
|
|
395
|
+
unit: { type: 'number' },
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
const ConfigTheme = {
|
|
399
|
+
type: 'object',
|
|
400
|
+
properties: {
|
|
401
|
+
breakpoints: Breakpoints,
|
|
402
|
+
codeBlock: CodeBlock,
|
|
403
|
+
colors: ThemeColors,
|
|
404
|
+
components: ConfigThemeComponents,
|
|
405
|
+
layout: Layout,
|
|
406
|
+
logo: ConfigThemeLogo,
|
|
407
|
+
fab: Fab,
|
|
408
|
+
overrides: Overrides,
|
|
409
|
+
rightPanel: RightPanel,
|
|
410
|
+
schema: ConfigThemeSchema,
|
|
411
|
+
shape: Shape,
|
|
412
|
+
sidebar: Sidebar,
|
|
413
|
+
spacing: ThemeSpacing,
|
|
414
|
+
typography: Typography,
|
|
415
|
+
links: { properties: { color: { type: 'string' } } },
|
|
416
|
+
codeSample: { properties: { backgroundColor: { type: 'string' } } },
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
const GenerateCodeSamples = {
|
|
420
|
+
type: 'object',
|
|
421
|
+
properties: {
|
|
422
|
+
skipOptionalParameters: { type: 'boolean' },
|
|
423
|
+
languages: { type: 'array', items: ConfigLanguage },
|
|
424
|
+
},
|
|
425
|
+
required: ['languages'],
|
|
426
|
+
};
|
|
427
|
+
exports.deprecatedRefDocsSchema = {
|
|
428
|
+
type: 'object',
|
|
429
|
+
properties: {
|
|
430
|
+
theme: ConfigTheme,
|
|
431
|
+
ctrlFHijack: { type: 'boolean' },
|
|
432
|
+
defaultSampleLanguage: { type: 'string' },
|
|
433
|
+
disableDeepLinks: { type: 'boolean' },
|
|
434
|
+
disableSearch: { type: 'boolean' },
|
|
435
|
+
disableSidebar: { type: 'boolean' },
|
|
436
|
+
downloadDefinitionUrl: { type: 'string' },
|
|
437
|
+
expandDefaultServerVariables: { type: 'boolean' },
|
|
438
|
+
enumSkipQuotes: { type: 'boolean' },
|
|
439
|
+
expandDefaultRequest: { type: 'boolean' },
|
|
440
|
+
expandDefaultResponse: { type: 'boolean' },
|
|
441
|
+
expandResponses: { type: 'string' },
|
|
442
|
+
expandSingleSchemaField: { type: 'boolean' },
|
|
443
|
+
generateCodeSamples: GenerateCodeSamples,
|
|
444
|
+
generatedPayloadSamplesMaxDepth: { type: 'number' },
|
|
445
|
+
hideDownloadButton: { type: 'boolean' },
|
|
446
|
+
hideHostname: { type: 'boolean' },
|
|
447
|
+
hideInfoSection: { type: 'boolean' },
|
|
448
|
+
hideLogo: { type: 'boolean' },
|
|
449
|
+
hideRequestPayloadSample: { type: 'boolean' },
|
|
450
|
+
hideRightPanel: { type: 'boolean' },
|
|
451
|
+
hideSchemaPattern: { type: 'boolean' },
|
|
452
|
+
hideSingleRequestSampleTab: { type: 'boolean' },
|
|
453
|
+
hideSecuritySection: { type: 'boolean' },
|
|
454
|
+
hideTryItPanel: { type: 'boolean' },
|
|
455
|
+
hideFab: { type: 'boolean' },
|
|
456
|
+
hideOneOfDescription: { type: 'boolean' },
|
|
457
|
+
htmlTemplate: { type: 'string' },
|
|
458
|
+
jsonSampleExpandLevel: {
|
|
459
|
+
oneOf: [{ type: 'number', minimum: 1 }, { type: 'string' }],
|
|
460
|
+
},
|
|
461
|
+
labels: ConfigLabels,
|
|
462
|
+
menuToggle: { type: 'boolean' },
|
|
463
|
+
nativeScrollbars: { type: 'boolean' },
|
|
464
|
+
noAutoAuth: { type: 'boolean' },
|
|
465
|
+
onDeepLinkClick: { type: 'object' },
|
|
466
|
+
pagination: { enum: ['none', 'section', 'item'] },
|
|
467
|
+
pathInMiddlePanel: { type: 'boolean' },
|
|
468
|
+
payloadSampleIdx: { type: 'number', minimum: 0 },
|
|
469
|
+
requiredPropsFirst: { type: 'boolean' },
|
|
470
|
+
routingStrategy: { type: 'string' },
|
|
471
|
+
samplesTabsMaxCount: { type: 'number' },
|
|
472
|
+
schemaExpansionLevel: {
|
|
473
|
+
oneOf: [{ type: 'number', minimum: 0 }, { type: 'string' }],
|
|
474
|
+
},
|
|
475
|
+
minCharacterLengthToInitSearch: { type: 'number', minimum: 1 },
|
|
476
|
+
maxResponseHeadersToShowInTryIt: { type: 'number', minimum: 0 },
|
|
477
|
+
scrollYOffset: {
|
|
478
|
+
oneOf: [{ type: 'number' }, { type: 'string' }],
|
|
479
|
+
},
|
|
480
|
+
searchAutoExpand: { type: 'boolean' },
|
|
481
|
+
searchFieldLevelBoost: { type: 'number', minimum: 0 },
|
|
482
|
+
searchMaxDepth: { type: 'number', minimum: 1 },
|
|
483
|
+
searchMode: { type: 'string', enum: ['default', 'path-only'] },
|
|
484
|
+
searchOperationTitleBoost: { type: 'number' },
|
|
485
|
+
searchTagTitleBoost: { type: 'number' },
|
|
486
|
+
sendXUserAgentInTryIt: { type: 'boolean' },
|
|
487
|
+
showChangeLayoutButton: { type: 'boolean' },
|
|
488
|
+
showConsole: { type: 'boolean' },
|
|
489
|
+
showNextButton: { type: 'boolean' },
|
|
490
|
+
showRightPanelToggle: { type: 'boolean' },
|
|
491
|
+
showSecuritySchemeType: { type: 'boolean' },
|
|
492
|
+
showWebhookVerb: { type: 'boolean' },
|
|
493
|
+
showObjectSchemaExamples: { type: 'boolean' },
|
|
494
|
+
disableTryItRequestUrlEncoding: { type: 'boolean' },
|
|
495
|
+
sidebarLinks: ConfigSidebarLinks,
|
|
496
|
+
sideNavStyle: { type: 'string', enum: ['summary-only', 'path-first', 'id-only', 'path-only'] },
|
|
497
|
+
simpleOneOfTypeLabel: { type: 'boolean' },
|
|
498
|
+
sortEnumValuesAlphabetically: { type: 'boolean' },
|
|
499
|
+
sortOperationsAlphabetically: { type: 'boolean' },
|
|
500
|
+
sortPropsAlphabetically: { type: 'boolean' },
|
|
501
|
+
sortTagsAlphabetically: { type: 'boolean' },
|
|
502
|
+
suppressWarnings: { type: 'boolean' },
|
|
503
|
+
unstable_externalDescription: { type: 'boolean' },
|
|
504
|
+
unstable_ignoreMimeParameters: { type: 'boolean' },
|
|
505
|
+
untrustedDefinition: { type: 'boolean' },
|
|
506
|
+
showAccessMode: { type: 'boolean' },
|
|
507
|
+
preserveOriginalExtensionsName: { type: 'boolean' },
|
|
508
|
+
markdownHeadingsAnchorLevel: { type: 'number' },
|
|
509
|
+
},
|
|
510
|
+
additionalProperties: false,
|
|
511
|
+
};
|
|
512
|
+
function pickObjectProps(object, keys) {
|
|
513
|
+
return Object.fromEntries(keys.filter((key) => key in object).map((key) => [key, object[key]]));
|
|
514
|
+
}
|
|
515
|
+
function omitObjectProps(object, keys) {
|
|
516
|
+
return Object.fromEntries(Object.entries(object).filter(([key]) => !keys.includes(key)));
|
|
517
|
+
}
|
|
518
|
+
//# sourceMappingURL=reference-docs-config-schema.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removePropertyRecursively = removePropertyRecursively;
|
|
4
|
+
function removePropertyRecursively(object, propToRemove) {
|
|
5
|
+
return Object.fromEntries(Object.entries(object)
|
|
6
|
+
.map(([key, value]) => {
|
|
7
|
+
if (key === propToRemove) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
if (typeof value !== 'object' || !value) {
|
|
11
|
+
return [key, value];
|
|
12
|
+
}
|
|
13
|
+
if (Array.isArray(value)) {
|
|
14
|
+
return [
|
|
15
|
+
key,
|
|
16
|
+
value.map((arrayItem) => typeof arrayItem === 'object'
|
|
17
|
+
? removePropertyRecursively(arrayItem, propToRemove)
|
|
18
|
+
: arrayItem),
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
return [key, removePropertyRecursively(value, propToRemove)];
|
|
22
|
+
})
|
|
23
|
+
.filter(Boolean));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=remove-property-recursively.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reuniteConfigSchema = void 0;
|
|
4
|
+
const jobInputsSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
additionalProperties: { type: 'string' },
|
|
7
|
+
};
|
|
8
|
+
const jobServersSchema = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
patternProperties: {
|
|
12
|
+
'^[a-zA-Z0-9_-]+$': {
|
|
13
|
+
type: 'string',
|
|
14
|
+
pattern: '^https?://[^\\s/$.?#].[^\\s]*$',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
const severitySchema = {
|
|
19
|
+
type: 'string',
|
|
20
|
+
enum: ['error', 'warn', 'off'],
|
|
21
|
+
};
|
|
22
|
+
const jobSeveritySchema = {
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
properties: {
|
|
26
|
+
schemaCheck: severitySchema,
|
|
27
|
+
statusCodeCheck: severitySchema,
|
|
28
|
+
contentTypeCheck: severitySchema,
|
|
29
|
+
successCriteriaCheck: severitySchema,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
const jobTriggerIntervalSchema = {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
event: { type: 'string', enum: ['schedule'] },
|
|
36
|
+
interval: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
enum: ['1m', '2m', '5m', '10m', '15m', '30m', '1h', '3h', '6h', '12h', '1d', '7d'],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
required: ['event'],
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
};
|
|
44
|
+
const jobTriggerBuildSchema = {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: {
|
|
47
|
+
event: { type: 'string', enum: ['build'] },
|
|
48
|
+
},
|
|
49
|
+
required: ['event'],
|
|
50
|
+
additionalProperties: false,
|
|
51
|
+
};
|
|
52
|
+
const sloSchema = {
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: {
|
|
55
|
+
warn: { type: 'number' },
|
|
56
|
+
error: { type: 'number' },
|
|
57
|
+
},
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
};
|
|
60
|
+
exports.reuniteConfigSchema = {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
ignoreLint: {
|
|
64
|
+
oneOf: [
|
|
65
|
+
{ type: 'boolean', default: false },
|
|
66
|
+
{
|
|
67
|
+
type: 'object',
|
|
68
|
+
additionalProperties: { type: 'boolean' },
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
ignoreLinkChecker: { type: 'boolean' },
|
|
73
|
+
ignoreMarkdocErrors: { type: 'boolean' },
|
|
74
|
+
ignoreRespectMonitoring: { type: 'boolean' },
|
|
75
|
+
jobs: {
|
|
76
|
+
type: 'array',
|
|
77
|
+
items: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
path: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
pattern: '^(?!\\/|\\.\\./)',
|
|
83
|
+
},
|
|
84
|
+
agent: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
enum: ['respect'],
|
|
87
|
+
},
|
|
88
|
+
trigger: {
|
|
89
|
+
oneOf: [jobTriggerIntervalSchema, jobTriggerBuildSchema],
|
|
90
|
+
},
|
|
91
|
+
inputs: jobInputsSchema,
|
|
92
|
+
servers: jobServersSchema,
|
|
93
|
+
severity: jobSeveritySchema,
|
|
94
|
+
slo: sloSchema,
|
|
95
|
+
},
|
|
96
|
+
required: ['path', 'trigger', 'agent'],
|
|
97
|
+
additionalProperties: false,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
additionalProperties: false,
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=reunite-config-schema.js.map
|