Skip to content

Files

Latest commit

931eab2 · Dec 7, 2024

History

History
42 lines (31 loc) · 1.26 KB

updating-sdk.md

File metadata and controls

42 lines (31 loc) · 1.26 KB

Updating the SDK

Note

The tooling for this project uses Castor, a full-featured PHP task runner. In order to install Castor, see the installation instructions.

Fetch the latest OpenAPI specification version

This library is generated using an OpenApi definition which is itself generated. Therefore, you should not manually change the Resources/harvest-openapi.yaml file, but rather change the way it is generated in the jolicode/harvest-openapi-generator repository.

You can update the SDK to the last available specification version by running the following command:

castor update
castor qa:cs

This will both update the specification and re-generate the library code. Once done, you can run tests against the library:

castor qa:test

If you wish to open a pull-request, please follow the contribution guidelines.

Detailed steps

Updating the SDK "by hand" requires to download the last specification version and re-generate the library code. This can be done with the following commands:

castor sdk:update-specification
castor sdk:generate
castor qa:cs