Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-v0.2.0 - Aligment with API Design Guidelines Commonality - Add "status" field in error definitions #13

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

jpengar
Copy link
Collaborator

@jpengar jpengar commented Jan 9, 2023

NOTE

This PR replace PR #7 being done against main branch. This PR introduces same already approved changes from PR #7 but against a new branch dev-v0.2.0 in order to properly handle API definition versions in github repository.

Changes

PR to align API definition with the API Design Guidelines Commonality recently approved in CAMARA: https://github.com/camaraproject/WorkingGroups/blob/main/Commonalities/documentation/API-design-guidelines.md

Actually, the API proposal was already aligned with those guidelines except for one last change included before their approval in CAMARA Commonalities. That last change was to include a status field in the API error definition which corresponds with the HTTP response status code: https://github.com/camaraproject/WorkingGroups/blob/main/Commonalities/documentation/API-design-guidelines.md#6-error-responses

So this PR basically adds this new status field as the only functional change. And also include some other non-functional optimisations to re-use schema definitions related to API errors when possible.

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks
Look good for me.

Copy link
Collaborator

@monamok monamok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpengar jpengar merged commit 8a85c78 into dev-v0.2.0 Jan 10, 2023
@jpengar jpengar deleted the jpengar/add-error-status-v0.2.0 branch January 10, 2023 08:36
@jpengar jpengar changed the title jpengar/add-error-status-v0.2.0 dev-v0.2.0 - Aligment with API Design Guidelines Commonality - Add "status" field in error definitions Jan 10, 2023
jpengar added a commit that referenced this pull request Mar 14, 2023
…s latest project status (#30)

* jpengar/add-error-status-v0.2.0 (#13)

* jpengar/add-403-error-token-context (#14)

* jpengar/rfc4594-based-change-for-issue-23-v0.2.0 (#25)

* dev-v0.2.0 - Update API documentation according to v0.2.0 API definition (#19)

* jpengar/update-api-documentation-v0.2.0

* update api version in doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants