All Projects → char0n → swagger-editor-validate

char0n / swagger-editor-validate

Licence: BSD-3-Clause license
This GitHub Actions validates OpenAPI (OAS) definition file using Swagger Editor.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to swagger-editor-validate

Validator.js
String validation
Stars: ✭ 18,842 (+62706.67%)
Mutual labels:  validations, validate
Vee Validate
✅ Form Validation for Vue.js
Stars: ✭ 8,820 (+29300%)
Mutual labels:  validations, validate
FilterInputJs
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Stars: ✭ 37 (+23.33%)
Mutual labels:  validations, validate
arrest
Swagger REST framework for Node.js, with support for MongoDB and JSON-Schema
Stars: ✭ 17 (-43.33%)
Mutual labels:  openapi
nestjs-asyncapi
NestJS AsyncAPI module - generate the documentation of your event-based services using decorators
Stars: ✭ 88 (+193.33%)
Mutual labels:  openapi
mrapi
A framework for rapid development of API or DAL applications.
Stars: ✭ 20 (-33.33%)
Mutual labels:  openapi
openapi4j
OpenAPI 3 parser, JSON schema and request validator.
Stars: ✭ 92 (+206.67%)
Mutual labels:  openapi
yaml-include
Valid, modular YAML documents with js-yaml. Seriously.
Stars: ✭ 39 (+30%)
Mutual labels:  openapi
talos
Elixir parameter validation library. Simple and extensible
Stars: ✭ 23 (-23.33%)
Mutual labels:  validate
openapicmd
The CLI for all things OpenAPI and Swagger
Stars: ✭ 24 (-20%)
Mutual labels:  openapi
starlite
Light, Flexible and Extensible ASGI API framework
Stars: ✭ 1,525 (+4983.33%)
Mutual labels:  openapi
twitter-trend-analyzer
The trend analysis engine for a specific keyword of Twitter by using a graphical chart and geographical chart.
Stars: ✭ 20 (-33.33%)
Mutual labels:  openapi
oauth1-signer-nodejs
Zero dependency library for generating a Mastercard API compliant OAuth signature.
Stars: ✭ 26 (-13.33%)
Mutual labels:  openapi
apispots-extension
Chrome extensions for discovering and interacting with Open APIs
Stars: ✭ 41 (+36.67%)
Mutual labels:  openapi
oag
Idiomatic Go (Golang) client package generation from OpenAPI documents
Stars: ✭ 51 (+70%)
Mutual labels:  openapi
sbt-lagom-descriptor-generator
Lagom API code generator
Stars: ✭ 23 (-23.33%)
Mutual labels:  openapi
OpenAPI-Swift
KKBOX Open API Swift Developer SDK for iOS/macOS/watchOS/tvOS
Stars: ✭ 13 (-56.67%)
Mutual labels:  openapi
intellij-openapi-generator
Intellij Plugin for openapi-generator
Stars: ✭ 73 (+143.33%)
Mutual labels:  openapi
minos
Tool to test OpenAPI spec files VS real implementations
Stars: ✭ 17 (-43.33%)
Mutual labels:  openapi
cakephp-swagger-bake
Automatically generate OpenAPI, Swagger, and Redoc documentation from your existing CakePHP code.
Stars: ✭ 48 (+60%)
Mutual labels:  openapi

Swagger Editor Validate Github Action

This GitHub Action validates OpenAPI (OAS) definition file using Swagger Editor.

test

It's handy for use-cases when OAS definition is maintained manually and is checked within the git. If modifications are made to the OAS definition you want to make sure that there are no errors introduced by modifications. Errors that would appear in Swagger Editor when the OAS definition would be pasted inside it.

image

If you're interested about technical design and evolution of this GitHub Action please read our release article.

Inputs

swagger-editor-url

Optional Defines URL of swagger-editor where definition file is going to be validated. Default https://editor.swagger.io/.

definition-file

Required Defines path of OAS definition file that exists as a physical file in your repository.

ignore-error

Optional Defines path to JavaScript file containing predicate for determining if the error should be ignored or not.

Example usage

There are two major use-cases of how to use this GitHub Action.

Public use-case

If you have access to the internet and don't mind that this action sends your OAS definition to https://editor.swagger.io/ for validation.

on: [push]

jobs:
  test_swagger_editor_validator_remote:
    runs-on: ubuntu-latest
    name: Swagger Editor Validator Remote

    steps:
      - uses: actions/checkout@v2
      - name: Validate OpenAPI definition
        uses: char0n/swagger-editor-validate@v1
        with:
          definition-file: examples/openapi-2-0.yaml

Private use-case

If you want to maintain complete privacy and your OAS definition may contain sensitive information use the following workflow. The workflow uses swagger-editor docker image that runs as service of the workflow.

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: examples/openapi-2-0.yaml
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].