Skip to content

Updating API return value format #55

Updating API return value format

Updating API return value format #55

Workflow file for this run

# Display Name of the workflow
name: Validate OpenAPI Spec Files
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Run the unit tests on every change
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
Validate:
# Display name of the job
name: Validate OpenAPI Specs
# Operating system filter for the runners
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Download Source Files
uses: actions/checkout@v4
# Set up NodeJS on the build host
- name: Setup Node.JS Environment
uses: actions/setup-node@v4
with:
node-version: 20.x
# Sets up OpenJDK on the build host
- name: Set up Microsoft OpenJDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'microsoft'
# Install all of the dependencies
- name: Install All of the Project Dependencies
run: npm install @openapitools/openapi-generator-cli -g
# Run the validation of all Specification Files
- name: Validate OpenAPI Specs
run: |
for file in $(find . -path ./\.vscode -prune -name "*.json"); do
openapi-generator-cli validate -i "$file"
done