walmart-api-php icon indicating copy to clipboard operation
walmart-api-php copied to clipboard

Use openapi generate from node

Open dpash opened this issue 1 year ago • 1 comments

I had some issues getting the project to build, with finding the correct version of openapi generator.

To make it slightly easier to set up the environment, this commit uses @openapitools/openapi-generator-cli to fetch the relevant version. We're stopping at 6.6.0 as later versions have issues with the project. We also need Java 15 or earlier, as Java 16 closes access to a number of classes that OpenAPI uses (via the Java Moustache library).

dpash avatar Feb 15 '24 17:02 dpash

I don't know why the quote escaping was required to get it to build for me (without it, it would generate files in ./src/ModelsCPUSFeeds/Cause.php which is obviously incorrect.

I also noticed that it's generating test files, but they're not in the repo, so I've just added that to .gitignore for now.

My alternative plan was a docker based setup, so there's no requirement for node to be installed, but obviously that requires a docker install instead.

dpash avatar Feb 15 '24 17:02 dpash