-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve /did/create API [DEV-3197] (#388)
* Update package-lock.json. * Remove assertionMethod from form based request body in /did/create API. * Remove didDocument from form based request body in /did/create API. * Rename /did/create API request body section name from "methodSpecificIdAlgo" to "identifierFormatType". * Update DidCreateRequest type. * Remove an unused assertionMethod variable for a form based case. * Add service section for form based request body in /did/create API. * Update DidCreateRequestFormBased request type. * Add key section for form based request body in /did/create API. * Update swagger (OpenAPI). * Bump '@cheqd/sdk' version. * Add options section for json based request body in /create/did API. * Remove verificationMethod from json based request body in /did/create API. * Add example for key field in json based request body in /did/create API. * Remove an unused expression: - This always evaluates to truthy. * Remove an incorrect description from DidDocumentWithoutVerificationMethod type. * Add '@context' section for form based request body in /did/create API. * Use an exist createDidVerificationMethod function instead of helper functions. * Create CreateDidRequestBody type for asserting request body in /did/create API. * Add integration tests for testing form-based request body in /did/create API. * Add integration tests for testing JSON based request body in /did/create API. * Fix problem with handling multiple services in did/create API. * Fix problem with handling multiple "context" in /did/create API. * Remove indirect imports in issuer.ts. * Remove an unused cast. * Add negative integration tests for testing /did/create API. * Re-arch integration tests for did/create API. * Refactor positive integration tests for /did/create API. * Update positive integration tests. * Re-arch integration tests for /did/create API. * Update negative integration tests. * Update integration tests. * Update integration tests. * Refactor err msgs in negative integration tests. * Update err messages in integration tests. * Rename from DidCreateRequest to DidCreateRequestJson. * Add check to checking statusCodes is in 200...299 family. * Update validation for DID. * Revert validation for DID. * Fix validation for DidCreatePayload * Update err messages in integration tests. --------- Co-authored-by: Andrew Nikitin <[email protected]>
- Loading branch information
1 parent
3aced2c
commit 9791dc6
Showing
15 changed files
with
828 additions
and
102 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.