Skip to content

Commit

Permalink
wip: !!
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-Bernard committed Mar 5, 2024
1 parent bd60b35 commit b4440f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/swagger_validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: swagger

on:
push:
branches:
Expand All @@ -9,15 +7,15 @@ on:
jobs:
swagger:
runs-on: ubuntu-latest
name: Swagger Editor Validator Service
name: Swagger Docs Validation
services:
swagger-editor:
image: swaggerapi/swagger-editor:next-v5
ports:
- 80:8080
steps:
- uses: actions/checkout@v2
- name: Validate Swagger Spec
- name: Validate Swagger Spec
uses: char0n/swagger-editor-validate@v1
with:
definition-file: app/assets/swagger/swagger.json
Expand Down
2 changes: 1 addition & 1 deletion app/assets/swagger/shouldIgnoreError.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const shouldIgnoreError = (err) => {
console.debug({ ...err });
console.debug(err.location);
console.debug(typeof err.location);
if (err.location.contains('openapi')) {
if (/openapi/.test(err.location)) {
return true;
}
return false;
Expand Down

0 comments on commit b4440f4

Please sign in to comment.