Skip to content

Commit b54d69a

Browse files
[CON-3017] update sdk to 2025-09-10 (#12)
* [CON-3172] update php sdk to 2025 09 10 version * remove unused files
1 parent 9bccedc commit b54d69a

File tree

172 files changed

+40894
-2566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+40894
-2566
lines changed

build/generate-openapi.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
#!/bin/bash
22

33
# Generate the PHP client
4-
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
5-
-i /local/openapi/2022-04-07.yaml \
4+
# keeping the same version of the openapi generator to avoid generator diffs
5+
6+
# for some reason the generated src/Configuration.php file contained an issue in the last function I had
7+
# to manually fix where it declared $hostSettings as a parameter name but used $hostsSettings in the method bodyù
8+
9+
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v7.2.0 generate \
10+
-i /local/openapi/2025-09-10.yaml \
611
-g php \
712
-o /local/generated \
813
-c /local/build/open-api-config.json \
914
--additional-properties invokerPackage=Dojo_PHP \
1015

11-
16+
# remove older files in models and api
17+
rm -rf src/Model/*
18+
rm -rf src/Api/*
1219
# Copy files from generated to src - only everything inside generated/src
13-
20+
cp -rv generated/src/. src/
21+
rm -rf generated

0 commit comments

Comments
 (0)