Skip to content

Commit

Permalink
Merge branch 'version-1-x' into gateway_events_less_filtering_restric…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
roesekoSICKAG authored Jul 16, 2024
2 parents ccb1f20 + d15b72a commit 0a40225
Show file tree
Hide file tree
Showing 10 changed files with 3,633 additions and 3,699 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
# Run Spectral
- uses: stoplightio/spectral-action@latest
with:
file_glob: 'JSON_for_IO-Link.yaml'
spectral_ruleset: spectral.yaml
file_glob: "JSON_for_IO-Link.yaml"
spectral_ruleset: .spectral.yaml
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
5 changes: 5 additions & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Linting rules
extends: ["spectral:oas", "spectral:asyncapi"]
# rules:
# oas3-unused-component: off
# path-params: off # to disable error: path-params Paths "/devices/{deviceAlias}/parameters/{index}/value" and "/devices/{deviceAlias}/parameters/{parameterName}/value" must not be equivalent.
Loading

0 comments on commit 0a40225

Please sign in to comment.