diff --git a/aries_cloudagent/indy/models/cred.py b/aries_cloudagent/indy/models/cred.py index f5d00a66b4..8875b8b436 100644 --- a/aries_cloudagent/indy/models/cred.py +++ b/aries_cloudagent/indy/models/cred.py @@ -59,9 +59,7 @@ def __init__(self, **kwargs): """Initialize the custom schema for a dictionary with IndyAttrValue.""" super().__init__( keys=fields.Str(metadata={"description": "Attribute name"}), - values=fields.Nested( - IndyAttrValueSchema(), metadata={"description": "Attribute value"} - ), + values=fields.Nested(IndyAttrValueSchema()), **kwargs, ) diff --git a/open-api/openapi.json b/open-api/openapi.json index 34a0135d58..b0ed647f71 100644 --- a/open-api/openapi.json +++ b/open-api/openapi.json @@ -9861,11 +9861,7 @@ }, "values" : { "additionalProperties" : { - "allOf" : [ { - "$ref" : "#/definitions/IndyAttrValue" - } ], - "description" : "Attribute value", - "type" : "object" + "$ref" : "#/components/schemas/IndyAttrValue" }, "description" : "Credential attributes", "type" : "object" diff --git a/open-api/swagger.json b/open-api/swagger.json index a670cd25bb..33b4e1842a 100644 --- a/open-api/swagger.json +++ b/open-api/swagger.json @@ -8454,11 +8454,7 @@ "type" : "object", "description" : "Credential attributes", "additionalProperties" : { - "type" : "object", - "description" : "Attribute value", - "allOf" : [ { - "$ref" : "#/definitions/IndyAttrValue" - } ] + "$ref" : "#/definitions/IndyAttrValue" } }, "witness" : {