#!/bin/bash

# Note you need to add in inventory_levels as it's not in the library despite being in the 2.0 API

docker run --rm -v ".:/local" openapitools/openapi-generator-cli:v6.0.0 generate -i /local/swagger/api-0.9.json -c /local/swagger/config09.json -g php -o /local/0.9
docker run --rm -v ".:/local" openapitools/openapi-generator-cli:v6.0.0 generate -i /local/swagger/api-2.0.json -c /local/swagger/config20.json -g php -o /local/2.0
docker run --rm -v ".:/local" openapitools/openapi-generator-cli:v6.0.0 generate -i /local/swagger/api-2.1.json -c /local/swagger/config21.json -g php -o /local/2.1
docker run --rm -v ".:/local" openapitools/openapi-generator-cli:v6.0.0 generate -i /local/swagger/api-3.0.json -c /local/swagger/config30.json -g php -o /local/3.0

docker run --rm -v ".:/local" openapitools/openapi-generator-cli:v7.21.0 generate -i /local/swagger/api-2026-01.yaml -c /local/swagger/config2026-01.json -g php -o /local/2026-01
