Skip to content

sampleworthy/swagger-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger-validate-container

This repository creates a container image swagger-validate that has the swagget validator in-built.

Usage

This is to be used in CI runners to validate the openapi spec yaml files or json files for the specified directory.

GitHub Example

To use in GitHub Actions,

name: swagger-validate
on:
  push:
    branches: [ master ]
jobs:
  build:
    container: jaymlaws/swagger-validate:latest
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: validate
      run: validate .

Credits

This container image uses the swagger-cli to validate the yaml files.

About

jaymlaws / swagger-validate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published