diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aa26ac..e33dd1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 21.x] + node-version: [20.x, 22.x, 23.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} @@ -35,7 +35,7 @@ jobs: name: Branch Build strategy: matrix: - node-version: [20.x, 21.x] + node-version: [20.x, 22.x, 23.x] steps: - uses: actions/checkout@v4 with: diff --git a/package-lock.json b/package-lock.json index 18716b3..ba3807b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "@checkdigit/spectral-config", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@checkdigit/spectral-config", - "version": "2.1.0", + "version": "2.1.1", "license": "UNLICENSED", "devDependencies": { "@checkdigit/prettier-config": "^5.3.0" }, "engines": { - "node": ">=20.11" + "node": ">=20.17" }, "peerDependencies": { "@stoplight/spectral-cli": "6.11.0" diff --git a/package.json b/package.json index b21b389..4cfdcd4 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@checkdigit/spectral-config", - "version": "2.1.0", + "version": "2.1.1", "description": "Check Digit Spectral Config", "main": "ruleset.json", "private": false, "prettier": "@checkdigit/prettier-config", "engines": { - "node": ">=20.11" + "node": ">=20.17" }, "files": [ "ruleset.json" diff --git a/ruleset.json b/ruleset.json index 88bf5c7..7f0fbd3 100644 --- a/ruleset.json +++ b/ruleset.json @@ -36,6 +36,16 @@ "oas2-operation-security-defined": "error", "oas2-schema": "error", "oas2-unused-definition": "error", - "oas2-valid-media-example": "error" + "oas2-valid-media-example": "error", + "schema-description": { + "description": "All schemas must have a description.", + "message": "Schema is missing description.", + "severity": "error", + "given": "$.components.schemas.*", + "then": { + "field": "description", + "function": "truthy" + } + } } } diff --git a/test/openapi.yml b/test/openapi.yml index 05fc534..29218ff 100644 --- a/test/openapi.yml +++ b/test/openapi.yml @@ -88,6 +88,7 @@ components: ExampleItemResponse: type: object + description: The item response for the example. additionalProperties: false required: - createdOn @@ -98,6 +99,7 @@ components: ExampleRequest: type: object + description: The item request for the example. additionalProperties: false required: - name