Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

openapi spec to json schema

v0.0.2 Pre-release

openapi spec to json schema

box

openapi spec to json schema

Retrieve openapi specification file and return json schema file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: openapi spec to json schema

uses: telstra/[email protected]

Learn more about this action in telstra/openapi-spec-to-json-schema

Choose a version

openapi spec to json schema

This action retrieves a validated openapi specification file from a user provided origin and returns a generated json schema file

Inputs

openapi spec url

Required The openapi specification file origin url.

Outputs

json-schema-file

The json schema file.

Example usage

uses: telstra/[email protected]
with:
  specification-url: 'https://dev.telstra.com/sites/default/files/redocs/1620871323/messaging-api-swagger_0.yaml'