Skip to content

Nitro OpenAPI Validate

Actions

About

Validates OpenAPI documents against the Nitro registry
v16.0.3
Latest
Star (0)

Tags

 (1)

Nitro OpenAPI Validate

A GitHub Action that validates OpenAPI documents against the Nitro registry.

Usage

- uses: ChilliCream/nitro-openapi-validate@v16
  with:
    stage: <stage>
    openapi-collection-id: <openapi-collection-id>
    api-key: <api-key>
    patterns:
      - ./endpoints/**/*.graphql
      - ./models/Person.graphql
    # Optional
    comment-mode: none
    cloud-url: <cloud-url>

Inputs

Name Required Description
stage Yes The name of the stage
openapi-collection-id Yes The ID of the OpenAPI collection
api-key Yes API key for authentication
patterns Yes Glob patterns for selecting OpenAPI document files
comment-mode No Pull request feedback mode on failure: comment, review, or none (default)
cloud-url No The URL of the Nitro registry

If you self-host Nitro or use a dedicated hosted instance, you can specify the cloud-url input to point to your instance.

Pull Request comments

Use comment-mode to control pull request feedback behavior.

comment-mode: comment comments on the pull request - requires issues: write permissions

comment-mode: review creates a pull request review with a comment - requires pull-requests: write permissions

Example for comment-mode: comment:

jobs:
  validate:
    permissions:
      contents: read
      issues: write

Example for comment-mode: review:

jobs:
  validate:
    permissions:
      contents: read
      pull-requests: write

Note: When you define job-level permissions, GitHub no longer applies the default permission set for that job. Make sure to explicitly include every permission the job needs (for example contents: read).

Nitro OpenAPI Validate is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Validates OpenAPI documents against the Nitro registry
v16.0.3
Latest

Tags

 (1)

Nitro OpenAPI Validate is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.