Generate from OpenAPI json specs

This commit is contained in:
Beppe Catanese
2024-03-19 09:56:53 +01:00
parent 993111853e
commit 70c423d59f
2 changed files with 3 additions and 3 deletions

View File

@@ -19,11 +19,11 @@ jobs:
repository: 'Adyen/adyen-openapi'
path: 'adyen-openapi'
fetch-depth: 0
- name: Get changed files in the yaml folder
- name: Get changed files in the json folder
id: changed-files-specific
uses: tj-actions/changed-files@v35
with:
files: yaml/*.yaml
files: json/*.json
path: 'adyen-openapi'
- uses: JasonEtco/create-an-issue@v2
if: ${{ steps.changed-files-specific.outputs.added_files != '' }}

View File

@@ -10,7 +10,7 @@ DATE=$(date +"%Y-%m-%d")
# We allow only non classic, non webhook APIs
ALLOW_LIST="BalanceControlService|BalancePlatformService|BinLookupService|CheckoutService|DataProtectionService|DisputeService|GrantService|LegalEntityService|ManagementService|PayoutService|RecurringService|StoredValueService|TestCardService|TfmAPIService|TransferService"
for entry in "adyen-openapi/yaml"/*
for entry in "adyen-openapi/json"/*
do
echo "Processing $entry"
if echo "$entry" | grep -q -E "$ALLOW_LIST"; then