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,wBACnC,sBAAuB,SAAS,eAChC,+BAAgC,SAAS,uBACzC,kBAAmB,SAAS,iBAC5B,yBAA0B,SAAS,iBACnC,qBAAsB,SAAS,iBAC/B,gCAAiC,SAAS,yBAC1C,sBAAuB,SAAS,gBAChC,oCAAqC,SAAS,2BAC9C,wBAAyB,SAAS,iBAClC,+BAAgC,SAAS,sBACzC,6BAA8B,SAAS,qBACvC,6BAA8B,SAAS,sBACvC,8CACE,SAAS,oCACX,4BAA6B,SAAS,mBACtC,0BAA2B,SAAS,kBACpC,2BAA4B,SAAS,mBACrC,gCAAiC,SAAS","file":"/npm/@ibm-cloud/openapi-ruleset@1.31.1/src/ibm-oas.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@ibm-cloud/openapi-ruleset@1.31.1/src/ibm-oas.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * Copyright 2017 - 2025 IBM Corporation.\n * SPDX-License-Identifier: Apache2.0\n */\n\nconst { oas3 } = require('@stoplight/spectral-formats');\nconst { oas } = require('@stoplight/spectral-rulesets');\nconst ibmRules = require('./rules');\n\n// Spectral's \"no-$ref-siblings\" rule is configured to run on\n// OpenAPI 3.0.x documents (ref sibling attributes are allowed in OpenAPI 3.1.x).\n// However, we want to enable this rule also for OpenAPI 3.1.x documents,\n// so we'll just tweak Spectral's rule definition here.\noas.rules['no-$ref-siblings'].formats = [oas3];\n\nmodule.exports = {\n  extends: oas,\n  documentationUrl:\n    'https://github.com/IBM/openapi-validator/blob/main/docs/ibm-cloud-rules.md',\n  formats: [oas3],\n  rules: {\n    // Original list created from Spectral with:\n    // jq -r '.rules | to_entries | .[] | select(.value.recommended != false) | \"  \\(.key): off\"' src/rulesets/oas/index.json\n\n    // Spectral OAS rules - IBM Custom Settings\n\n    // Turn off -- duplicates no_success_response_codes\n    'operation-success-response': 'off',\n    // Enable with same severity as Spectral\n    'oas2-operation-formData-consume-check': true,\n    // Enable with same severity as Spectral\n    'operation-operationId-unique': true,\n    // Enable with same severity as Spectral\n    'operation-parameters': true,\n    // Enable with same severity as Spectral\n    'operation-tag-defined': true,\n    // Turn off - exclude from ibm:oas\n    'info-contact': 'off',\n    // Turn off - exclude from ibm:oas\n    'info-description': 'off',\n    // Enable with same severity as Spectral\n    'no-eval-in-markdown': true,\n    // Enable with same severity as Spectral\n    'no-script-tags-in-markdown': true,\n    // Enable with same severity as Spectral\n    'openapi-tags': true,\n    // Enable with same severity as Spectral\n    'operation-description': true,\n    // Enable with same severity as Spectral\n    'operation-operationId': true,\n    // Turn off - duplicates operation_id_case_convention\n    'operation-operationId-valid-in-url': 'off',\n    // Enable with same severity as Spectral\n    'operation-tags': true,\n    // Enable with same severity as Spectral\n    'path-params': true,\n    // Enable with same severity as Spectral\n    'path-declarations-must-exist': true,\n    // Enable with same severity as Spectral\n    'path-keys-no-trailing-slash': true,\n    // Enable with same severity as Spectral\n    'path-not-include-query': true,\n    // Enable with same severity as Spectral\n    'no-$ref-siblings': true,\n    // Enable with same settings as Spectral, but override the rule to modify\n    // the 'given' field to only check schemas - Spectral checks everything.\n    'typed-enum': ibmRules.typedEnum,\n    // Enable with same severity as Spectral\n    'oas2-api-host': true,\n    // Enable with same severity as Spectral\n    'oas2-api-schemes': true,\n    // Enable with same severity as Spectral\n    'oas2-host-trailing-slash': true,\n    // Turn off - duplicates non-configurable validation - security-ibm.js\n    'oas2-operation-security-defined': 'off',\n    // Enable with warn severity\n    'oas2-valid-schema-example': 'warn',\n    // Turn off\n    'oas2-valid-media-example': 'off',\n    // Enable with same severity as Spectral\n    'oas2-anyOf': true,\n    // Enable with same severity as Spectral\n    'oas2-oneOf': true,\n    // Turn off\n    'oas2-schema': 'off',\n    // Turn off - duplicates non-configurable validation in base validator\n    'oas2-unused-definition': true,\n    // Enable with same severity as Spectral\n    'oas3-api-servers': true,\n    // Enable with same severity as Spectral\n    'oas3-examples-value-or-externalValue': true,\n    // Turn off - duplicates non-configurable validation - security-ibm.js\n    'oas3-operation-security-defined': 'off',\n    // Enable with same severity as Spectral\n    'oas3-server-trailing-slash': true,\n    // Enable with warn severity\n    'oas3-valid-media-example': 'warn',\n    // Disable - replaced with ibm-valid-schema-example.\n    'oas3-valid-schema-example': 'off',\n    // Enable with same severity as Spectral\n    'oas3-schema': true,\n    // Turn off - duplicates non-configurable validation in base validator\n    'oas3-unused-component': true,\n    // Turn off 'array-items' rule in favor of our 'ibm-array-attributes' rule\n    'array-items': 'off',\n\n    // IBM Custom Rules\n    'ibm-accept-and-return-models': ibmRules.acceptAndReturnModels,\n    'ibm-anchored-patterns': ibmRules.anchoredPatterns,\n    'ibm-api-symmetry': ibmRules.apiSymmetry,\n    'ibm-array-attributes': ibmRules.arrayAttributes,\n    'ibm-avoid-inline-schemas': ibmRules.inlineSchemas,\n    'ibm-avoid-multiple-types': ibmRules.avoidMultipleTypes,\n    'ibm-avoid-property-name-collision': ibmRules.propertyNameCollision,\n    'ibm-avoid-repeating-path-parameters': ibmRules.duplicatePathParameter,\n    'ibm-binary-schemas': ibmRules.binarySchemas,\n    'ibm-collection-array-property': ibmRules.collectionArrayProperty,\n    'ibm-content-contains-schema': ibmRules.contentContainsSchema,\n    'ibm-content-type-is-specific': ibmRules.contentTypeIsSpecific,\n    'ibm-define-required-properties': ibmRules.requiredPropertyMissing,\n    'ibm-discriminator-property': ibmRules.discriminatorPropertyExists,\n    'ibm-dont-require-merge-patch-properties': ibmRules.mergePatchProperties,\n    'ibm-enum-casing-convention': ibmRules.enumCasingConvention,\n    'ibm-error-content-type-is-json': ibmRules.errorContentTypeIsJson,\n    'ibm-error-response-schemas': ibmRules.errorResponseSchemas,\n    'ibm-etag-header': ibmRules.etagHeaderExists,\n    'ibm-integer-attributes': ibmRules.integerAttributes,\n    'ibm-major-version-in-path': ibmRules.majorVersionInPath,\n    'ibm-no-accept-header': ibmRules.acceptHeader,\n    'ibm-no-ambiguous-paths': ibmRules.noAmbiguousPaths,\n    'ibm-no-array-of-arrays': ibmRules.arrayOfArrays,\n    'ibm-no-array-responses': ibmRules.arrayResponses,\n    'ibm-no-authorization-header': ibmRules.authorizationHeader,\n    'ibm-no-body-for-delete': ibmRules.deleteBody,\n    'ibm-no-circular-refs': ibmRules.circularRefs,\n    'ibm-no-consecutive-path-parameter-segments':\n      ibmRules.consecutivePathSegments,\n    'ibm-no-content-type-header': ibmRules.contentTypeHeader,\n    'ibm-no-crn-path-parameters': ibmRules.pathParameterNotCRN,\n    'ibm-no-default-for-required-parameter': ibmRules.parameterDefault,\n    'ibm-no-duplicate-description-with-ref-sibling':\n      ibmRules.refSiblingDuplicateDescription,\n    'ibm-no-if-modified-since-header': ibmRules.ifModifiedSinceHeader,\n    'ibm-no-if-unmodified-since-header': ibmRules.ifUnmodifiedSinceHeader,\n    'ibm-no-nullable-properties': ibmRules.noNullableProperties,\n    'ibm-no-operation-requestbody': ibmRules.noOperationRequestBody,\n    'ibm-no-optional-properties-in-required-body':\n      ibmRules.optionalRequestBodyDeprecated,\n    'ibm-no-ref-in-example': ibmRules.noRefInExample,\n    'ibm-no-required-properties-in-optional-body': ibmRules.optionalRequestBody,\n    'ibm-no-space-in-example-name': ibmRules.examplesNameContainsSpace,\n    'ibm-no-superfluous-allof': ibmRules.noSuperfluousAllOf,\n    'ibm-no-unsupported-keywords': ibmRules.noUnsupportedKeywords,\n    'ibm-openapi-tags-used': ibmRules.unusedTags,\n    'ibm-operation-responses': ibmRules.operationResponses,\n    'ibm-operation-summary': ibmRules.operationSummaryExists,\n    'ibm-operation-summary-length': ibmRules.operationSummaryLength,\n    'ibm-operationid-casing-convention': ibmRules.operationIdCasingConvention,\n    'ibm-operationid-naming-convention': ibmRules.operationIdNamingConvention,\n    'ibm-pagination-style': ibmRules.paginationStyle,\n    'ibm-parameter-casing-convention': ibmRules.parameterCasingConvention,\n    'ibm-parameter-description': ibmRules.parameterDescriptionExists,\n    'ibm-parameter-order': ibmRules.parameterOrder,\n    'ibm-parameter-schema-or-content': ibmRules.parameterSchemaOrContentExists,\n    'ibm-patch-request-content-type': ibmRules.patchRequestContentType,\n    'ibm-path-segment-casing-convention': ibmRules.pathSegmentCasingConvention,\n    'ibm-pattern-properties': ibmRules.patternProperties,\n    'ibm-precondition-headers': ibmRules.preconditionHeader,\n    'ibm-prefer-token-pagination': ibmRules.preferTokenPagination,\n    'ibm-property-attributes': ibmRules.propertyAttributes,\n    'ibm-property-casing-convention': ibmRules.propertyCasingConvention,\n    'ibm-property-consistent-name-and-type':\n      ibmRules.propertyConsistentNameAndType,\n    'ibm-property-description': ibmRules.propertyDescriptionExists,\n    'ibm-ref-pattern': ibmRules.refPattern,\n    'ibm-request-and-response-content': ibmRules.requestAndResponseContent,\n    'ibm-requestbody-is-object': ibmRules.requestBodyIsObject,\n    'ibm-requestbody-name': ibmRules.requestBodyName,\n    'ibm-required-array-properties-in-response':\n      ibmRules.requiredArrayPropertiesInResponse,\n    'ibm-required-enum-properties-in-response':\n      ibmRules.requiredEnumPropertiesInResponse,\n    'ibm-resource-response-consistency': ibmRules.resourceResponseConsistency,\n    'ibm-response-status-codes': ibmRules.responseStatusCodes,\n    'ibm-schema-casing-convention': ibmRules.schemaCasingConvention,\n    'ibm-schema-description': ibmRules.schemaDescriptionExists,\n    'ibm-schema-keywords': ibmRules.schemaKeywords,\n    'ibm-schema-naming-convention': ibmRules.schemaNamingConvention,\n    'ibm-schema-type': ibmRules.schemaTypeExists,\n    'ibm-schema-type-format': ibmRules.schemaTypeFormat,\n    'ibm-sdk-operations': ibmRules.ibmSdkOperations,\n    'ibm-securityscheme-attributes': ibmRules.securitySchemeAttributes,\n    'ibm-securityschemes': ibmRules.securitySchemes,\n    'ibm-server-variable-default-value': ibmRules.serverVariableDefaultValue,\n    'ibm-string-attributes': ibmRules.stringAttributes,\n    'ibm-success-response-example': ibmRules.responseExampleExists,\n    'ibm-summary-sentence-style': ibmRules.summarySentenceStyle,\n    'ibm-unevaluated-properties': ibmRules.unevaluatedProperties,\n    'ibm-unique-parameter-request-property-names':\n      ibmRules.uniqueParameterRequestPropertyNames,\n    'ibm-use-date-based-format': ibmRules.useDateBasedFormat,\n    'ibm-valid-path-segments': ibmRules.validPathSegments,\n    'ibm-valid-schema-example': ibmRules.validSchemaExample,\n    'ibm-well-defined-dictionaries': ibmRules.wellDefinedDictionaries,\n  },\n};\n"]}