#!/bin/bash

# Note that we use the python-experimental generator since it produces much more robust generated code
npx openapi-generator-cli generate \
  --log-to-stderr \
  --generator-name python-experimental \
  --skip-operation-example \
  --generate-alias-as-model \
  --minimal-update \
  --template-dir templates \
  --config config.yaml \
  --additional-properties=packageName=$package_name \
  --input-spec $spec_path \
  --output $output_path
