Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec changes 2025-01-17 #402

Merged
merged 6 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions .github/workflows/validate-openapi.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
name: Validate OpenAPI definition
name: Run Spectral on Pull Requests

on:
pull_request:
types: [opened, reopened, synchronize]
- pull_request

jobs:
validate_openapi:
build:
name: Run Spectral
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
# Check out the repository
- uses: actions/checkout@v3

# Run Spectral
- uses: stoplightio/spectral-action@latest
with:
swagger-editor-url: http://localhost/
definition-file: openapi.yaml
file_glob: 'openapi.yaml'
4 changes: 4 additions & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ["spectral:oas"]
rules:
no-$ref-siblings: off
oas3-valid-schema-example: off
Loading
Loading