-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from iolinkcommunity/fix/125-adjust-schema-fo…
…r-parameter-restrictions-like-minimum-maximum-and-length Fix/125 adjust schema for parameter restrictions like minimum maximum and length
- Loading branch information
Showing
7 changed files
with
3,595 additions
and
3,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Merge async api specification | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
name: Run swagger-merger | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repository | ||
- uses: actions/checkout@v4 | ||
|
||
# install swagger-merger | ||
- name: install swagger-merger | ||
run: npm install -g swagger-merger | ||
|
||
# Run swagger-merger | ||
- name: Run swagger-merger | ||
run: | | ||
swagger-merger -i MQTT_for_IO-Link.yaml schemas.yaml examples.yaml -o MQTT_for_IO-Link_merged.yaml | ||
swagger-merger -i JSON_for_IO-Link.yaml schemas.yaml examples.yaml -o JSON_for_IO-Link_merged.yaml | ||
- name: Upload merged MQTT_for_IO-Link YAML file as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mqtt-yaml | ||
path: MQTT_for_IO-Link_merged.yaml | ||
|
||
- name: Upload merged JSON_for_IO-Link YAML file as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: json-yaml | ||
path: JSON_for_IO-Link_merged.yaml |
Oops, something went wrong.