-
Notifications
You must be signed in to change notification settings - Fork 1
Guide to `codex update`
cguran-ionos edited this page Mar 22, 2023
·
7 revisions
This page is designed to help you propagate spec updates from github.com/ionos-cloud/rest-api to an existing openapi spec baseline.
- Configure target bucket:
codex config s3.bucket <s3-bucket-name>
- Double-check that all changes are expected:
codex update --check -o p1.patch
- Ideally add some tests for the new API functionalities https://github.com/ionos-cloud/sdk-resources/tree/master/tests
- Update the codex:
codex update -o p.patch
- Run
codex compile
to see that the spec is compiled succesfully
You can find the S3 Bucket names here
If you notice something broke, you can use the [email protected]
account to delete the last baseline version
If a patch is made locally for codex, but a PR is not made to fix it and the team fixes the same problem separately, you can see a difference in baselines. This is normal.
❯ baseline patch level: 0 ❯ total patches: 1
You can use codex sdk-changes
to see a diff of what is different:
Index: swagger.yaml =================================================================== --- swagger.yaml +++ swagger.yaml @@ -209,8 +209,9 @@ ## References contact: url: https://ionos.com name: IONOS Cloud + x-sdk-patch-level: 1 externalDocs: url: https://api.ionos.com/docs/cloud description: IONOS Cloud - API documentation servers: