From fb26c47b53c2cf768423eb94b2c4807c4d5a22a3 Mon Sep 17 00:00:00 2001 From: john court Date: Fri, 21 Aug 2020 10:03:32 +1000 Subject: [PATCH] Align swagger schema get output. The swagger object for schema get indicates an object name of "schema_json" whilst the actual returned json in the body is "schema". Changing to have swagger object called "schema" to be consistent since this is what existing clients must have been forcing to for it to work. Signed-off-by: john court --- aries_cloudagent/messaging/schemas/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries_cloudagent/messaging/schemas/routes.py b/aries_cloudagent/messaging/schemas/routes.py index 72dd64a14e..bfae859cee 100644 --- a/aries_cloudagent/messaging/schemas/routes.py +++ b/aries_cloudagent/messaging/schemas/routes.py @@ -66,7 +66,7 @@ class SchemaSchema(OpenAPISchema): class SchemaGetResultsSchema(OpenAPISchema): """Results schema for schema get request.""" - schema_json = fields.Nested(SchemaSchema()) + schema = fields.Nested(SchemaSchema()) class SchemasCreatedResultsSchema(OpenAPISchema):