Skip to content

Commit

Permalink
Merge pull request #131 from iolinkcommunity/fix/125-adjust-schema-fo…
Browse files Browse the repository at this point in the history
…r-parameter-restrictions-like-minimum-maximum-and-length

Fix/125 adjust schema for parameter restrictions like minimum maximum and length
  • Loading branch information
roesekoSICKAG authored Jul 11, 2024
2 parents aeea07e + fe93d10 commit d15b72a
Show file tree
Hide file tree
Showing 7 changed files with 3,595 additions and 3,415 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/spec-merge.yml
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
Loading

0 comments on commit d15b72a

Please sign in to comment.