From f72e67b1446ea32dee34c30633356e7207267d2b Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Thu, 5 Oct 2023 10:55:32 -0400 Subject: [PATCH] feat: mark jsonld sign and verify as deprecated The `/jsonld/sign` and `/jsonld/verify` endpoints will be removed in a future version of ACA-Py. Signed-off-by: Daniel Bluhm --- aries_cloudagent/messaging/jsonld/routes.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/aries_cloudagent/messaging/jsonld/routes.py b/aries_cloudagent/messaging/jsonld/routes.py index b7330f9d83..12c8105571 100644 --- a/aries_cloudagent/messaging/jsonld/routes.py +++ b/aries_cloudagent/messaging/jsonld/routes.py @@ -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): @@ -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):