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

fix: Check API responses are provided correctly in Swagger document [DEV-3133] #359

Merged
merged 20 commits into from
Sep 7, 2023

Conversation

abdulla-ashurov
Copy link
Contributor

@abdulla-ashurov abdulla-ashurov commented Aug 29, 2023

  • Update responses/results:
    • Update response type from boolean to DeactivatedDidResolution type in /did/deactivate/{did} endpoint.
    • Update response type from RequestResourcePayload to an existing ResourceMetadata in /resource/create/{did} endpoint.
    • Update response type in /credential-status/update/unencrypted to similar like in /credential-status/create/unencrypted endpoint.
  • Order swagger tags in that format: Account, Key, DID, Resources, Credential, Presentation, Credential-Status.

because this custom method is written incorrectly and doesn't allow to
show swagger.json in SwaggerUI.
of boolean type in `/did/deactivate/{did}` endpoint.
requestResourcePayload in `/resource/create/{did}`.
@abdulla-ashurov abdulla-ashurov added the bug Something isn't working label Aug 29, 2023
@abdulla-ashurov abdulla-ashurov self-assigned this Aug 29, 2023
@ankurdotb
Copy link
Contributor

Base automatically changed from DEV-3162 to develop August 29, 2023 15:19
@cheqd cheqd deleted a comment from ankurdotb Sep 4, 2023
@abdulla-ashurov abdulla-ashurov marked this pull request as ready for review September 5, 2023 06:51
Copy link
Contributor Author

@abdulla-ashurov abdulla-ashurov left a comment

Choose a reason for hiding this comment

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

After that commit changes in develop branch, currently updateUnecreptedStatusList2021 method from did-provider-cheqd returns resource and resourceMetadata for that reason I removedd9f82ce my manualy line of code where I try to get these are fields using DID Resolver after updateStatusList operation.

@ankurdotb, @Eengineer1 Now, PR is ready review! ✅

@ankurdotb ankurdotb merged commit 5b13ffa into develop Sep 7, 2023
8 checks passed
@ankurdotb ankurdotb deleted the DEV-3133-2 branch September 7, 2023 12:05
cheqd-bot bot pushed a commit that referenced this pull request Sep 7, 2023
## [2.9.2-develop.2](2.9.2-develop.1...2.9.2-develop.2) (2023-09-07)

### Bug Fixes

* Check API responses are provided correctly in Swagger document [DEV-3133] ([#359](#359)) ([5b13ffa](5b13ffa))
@cheqd-bot
Copy link

cheqd-bot bot commented Sep 7, 2023

🎉 This PR is included in version 2.9.2-develop.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

cheqd-bot bot pushed a commit that referenced this pull request Sep 12, 2023
## [2.9.2](2.9.1...2.9.2) (2023-09-12)

### Bug Fixes

* Add DID deactivation check for credential issuing [DEV-3136] ([#345](#345)) ([023bba1](023bba1))
* Check API responses are provided correctly in Swagger document [DEV-3133] ([#359](#359)) ([5b13ffa](5b13ffa))
* Enable updated state explicitly ([c3d9170](c3d9170))
@cheqd-bot
Copy link

cheqd-bot bot commented Sep 12, 2023

🎉 This PR is included in version 2.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cheqd-bot cheqd-bot bot added the released label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants