Skip to content

Commit

Permalink
🎨 fix descriptions containing new lines and excess whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 committed Apr 17, 2024
1 parent 288c660 commit 129c37a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
6 changes: 4 additions & 2 deletions aries_cloudagent/anoncreds/models/anoncreds_cred_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ class Meta:
type = fields.Str(validate=OneOf(["CL"]))
tag = fields.Str(
metadata={
"description": """The tag value passed in by the Issuer to
an AnonCred's Credential Definition create and store implementation.""",
"description": (
"The tag value passed in by the Issuer to "
"an AnonCred's Credential Definition create and store implementation."
),
"example": "default",
}
)
Expand Down
18 changes: 10 additions & 8 deletions aries_cloudagent/anoncreds/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@

SPEC_URI = "https://hyperledger.github.io/anoncreds-spec"

endorser_connection_id_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."""
create_transaction_for_endorser_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."""
endorser_connection_id_description = (
"Connection identifier (optional) (this is an example). "
"You can set this if you know the endorser's connection id you want to use. "
"If not specified then the agent will attempt to find an endorser connection."
)
create_transaction_for_endorser_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."
)


class SchemaIdMatchInfo(OpenAPISchema):
Expand Down
16 changes: 8 additions & 8 deletions aries_cloudagent/multitenant/admin/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ class CreateWalletRequestSchema(OpenAPISchema):
validate=validate.OneOf(["default", "both", "base"]),
metadata={
"description": (
"Webhook target dispatch type for this wallet. default -"
" Dispatch only to webhooks associated with this wallet. base -"
" Dispatch only to webhooks associated with the base wallet. "
" both - Dispatch to both webhook targets."
"Webhook target dispatch type for this wallet. "
"default: Dispatch only to webhooks associated with this wallet. "
"base: Dispatch only to webhooks associated with the base wallet. "
"both: Dispatch to both webhook targets."
),
"example": "default",
},
Expand Down Expand Up @@ -252,10 +252,10 @@ class UpdateWalletRequestSchema(OpenAPISchema):
validate=validate.OneOf(["default", "both", "base"]),
metadata={
"description": (
"Webhook target dispatch type for this wallet. default -"
" Dispatch only to webhooks associated with this wallet. base -"
" Dispatch only to webhooks associated with the base wallet. "
" both - Dispatch to both webhook targets."
"Webhook target dispatch type for this wallet. "
"default: Dispatch only to webhooks associated with this wallet. "
"base: Dispatch only to webhooks associated with the base wallet. "
"both: Dispatch to both webhook targets."
),
"example": "default",
},
Expand Down

0 comments on commit 129c37a

Please sign in to comment.