Skip to content

Commit

Permalink
Merge pull request #2533 from dbluhm/refactor/json-ld-sign-consistency
Browse files Browse the repository at this point in the history
refactor: make ldp_vc logic reusable
  • Loading branch information
dbluhm authored Dec 7, 2023
2 parents 67e82b4 + d489877 commit eb13083
Show file tree
Hide file tree
Showing 27 changed files with 1,420 additions and 855 deletions.
1 change: 1 addition & 0 deletions aries_cloudagent/config/default_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ async def load_plugins(self, context: InjectionContext):
plugin_registry.register_plugin("aries_cloudagent.messaging.jsonld")
plugin_registry.register_plugin("aries_cloudagent.resolver")
plugin_registry.register_plugin("aries_cloudagent.settings")
plugin_registry.register_plugin("aries_cloudagent.vc")
plugin_registry.register_plugin("aries_cloudagent.wallet")
if wallet_type == "askar-anoncreds":
plugin_registry.register_plugin("aries_cloudagent.anoncreds")
Expand Down
12 changes: 10 additions & 2 deletions aries_cloudagent/messaging/jsonld/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class SignResponseSchema(OpenAPISchema):
error = fields.Str(required=False, metadata={"description": "Error text"})


@docs(tags=["jsonld"], summary="Sign a JSON-LD structure and return it")
@docs(
tags=["jsonld"],
summary="Sign a JSON-LD structure and return it",
deprecated=True,
)
@request_schema(SignRequestSchema())
@response_schema(SignResponseSchema(), 200, description="")
async def sign(request: web.BaseRequest):
Expand Down Expand Up @@ -119,7 +123,11 @@ class VerifyResponseSchema(OpenAPISchema):
error = fields.Str(required=False, metadata={"description": "Error text"})


@docs(tags=["jsonld"], summary="Verify a JSON-LD structure.")
@docs(
tags=["jsonld"],
summary="Verify a JSON-LD structure.",
deprecated=True,
)
@request_schema(VerifyRequestSchema())
@response_schema(VerifyResponseSchema(), 200, description="")
async def verify(request: web.BaseRequest):
Expand Down
Loading

0 comments on commit eb13083

Please sign in to comment.