Skip to content

Commit

Permalink
Merge pull request openai#44 from openai/add-validator
Browse files Browse the repository at this point in the history
add openapi spec validator
  • Loading branch information
schnerd authored Jun 11, 2023
2 parents 8b9c21f + a96838a commit 9305b47
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate OpenAPI definition
on: [push]

jobs:
test_swagger_editor_validator_service:
runs-on: ubuntu-latest
name: Swagger Editor Validator Service

# Service containers to run with `runner-job`
services:
# Label used to access the service container
swagger-editor:
# Docker Hub image
image: swaggerapi/swagger-editor
ports:
# Maps port 8080 on service container to the host 80
- 80:8080

steps:
- uses: actions/checkout@v2
- name: Validate OpenAPI definition
uses: char0n/swagger-editor-validate@v1
with:
swagger-editor-url: http://localhost/
definition-file: openapi.yaml

0 comments on commit 9305b47

Please sign in to comment.