From 65ae9beea3ca6af36e6dbee07bdd3400f463f2dc Mon Sep 17 00:00:00 2001 From: Andy Loughran Date: Sat, 30 Sep 2023 12:28:03 +0100 Subject: [PATCH] Updated to ensure we utilise the oas3 spectral ruleset to capture securityScheme discrepencies and others --- .spectral.yaml | 2 +- aws_important_notes.yml | 3 +++ examples/.spectral.yml | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.spectral.yaml b/.spectral.yaml index ae89bfc..72a7fd1 100644 --- a/.spectral.yaml +++ b/.spectral.yaml @@ -1,2 +1,2 @@ extends: - - spectral-aws-apigateway-ruleset + - "spectral:oas" diff --git a/aws_important_notes.yml b/aws_important_notes.yml index 3112a13..ab95549 100644 --- a/aws_important_notes.yml +++ b/aws_important_notes.yml @@ -1,6 +1,9 @@ functions: - draft4 # These rules are a codified representation of https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html +extends: spectral:oas +formats: + - "oas3_0" rules: aws-openapi-version: description: "OpenAPI version must be 3.0.1. This is the version set when the API is exported from the REST interface." diff --git a/examples/.spectral.yml b/examples/.spectral.yml index 2be669b..22cd462 100644 --- a/examples/.spectral.yml +++ b/examples/.spectral.yml @@ -1,3 +1,2 @@ extends: - spectral:oas - - spectral-aws-apigateway-ruleset