Skip to content

Commit

Permalink
Align swagger schema get output.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jcourt562 committed Aug 21, 2020
1 parent f75a467 commit 87da3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/messaging/schemas/routes.py
Expand Up @@ -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):
Expand Down

0 comments on commit 87da3e8

Please sign in to comment.