Skip to content

Commit

Permalink
Add swagger api info for anoncreds schema endorsement
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Jan 18, 2024
1 parent ef2b031 commit 2602159
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion aries_cloudagent/anoncreds/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,24 @@ class SchemaPostOptionSchema(OpenAPISchema):
"""Parameters and validators for schema options."""

endorser_connection_id = fields.Str(
description="Connection identifier (optional) (this is an example)",
description="""
Connection identifier (optional) (this is an example)
You can set this is you know the endorsers connection id you want to use.
If not specified then the agent will attempt to find an endorser connection.
""",
required=False,
example=UUIDFour.EXAMPLE,
)

create_transaction_for_endorser = fields.Bool(
description="""
Create transaction for endorser (optional, default false).
Use this for agents who don't specify an author role but want to
create a transaction for an endorser to sign.""",
required=False,
example=False,
)


class SchemaPostRequestSchema(OpenAPISchema):
"""Parameters and validators for query string in create schema."""
Expand Down

0 comments on commit 2602159

Please sign in to comment.