Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(proxy): add transactionFee to example inputs (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Merle Breitkreuz committed Jun 19, 2020
1 parent d303923 commit ab4716b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions proxy/src/http/org.rs
Expand Up @@ -434,6 +434,12 @@ impl ToDocumentedType for RegisterInput {
.description("ID of the org")
.example("monadic"),
);
properties.insert(
"transactionFee".into(),
document::string()
.description("User specified transaction fee")
.example(100),
);

document::DocumentedType::from(properties).description("Input for org registration")
}
Expand All @@ -458,6 +464,12 @@ impl ToDocumentedType for RegisterMemberInput {
.description("Handle of the user")
.example("cloudhead"),
);
properties.insert(
"transactionFee".into(),
document::string()
.description("User specified transaction fee")
.example(100),
);

document::DocumentedType::from(properties).description("Input for member registration")
}
Expand Down
6 changes: 6 additions & 0 deletions proxy/src/http/project.rs
Expand Up @@ -519,6 +519,12 @@ impl ToDocumentedType for RegisterInput {
.description("Unique name under the Org of the project")
.example("upstream"),
);
properties.insert(
"transactionFee".into(),
document::string()
.description("User specified transaction fee")
.example(100),
);
properties.insert(
"maybeCocoId".into(),
document::string()
Expand Down
6 changes: 6 additions & 0 deletions proxy/src/http/user.rs
Expand Up @@ -222,6 +222,12 @@ impl ToDocumentedType for RegisterInput {
.description("Handle/ID of the User to be registered under")
.example("cloudhead"),
);
props.insert(
"transactionFee".into(),
document::string()
.description("User specified transaction fee")
.example(100),
);
props.insert(
"maybeEntityId".into(),
document::string()
Expand Down

0 comments on commit ab4716b

Please sign in to comment.