Skip to content

Commit

Permalink
chore: Action schema description updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed May 15, 2024
1 parent 8055c65 commit 2ebb3d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
@Reflectable @NoArgsConstructor
@Data
public final class ActionParameter implements IActionElement {
@JsonPropertyDescription("Required string: Action parameter name. This will allow the action to accept CLI options named '--<name>' or '-<name>' for single-letter names. Parameter value can be referenced through ${parameters.name} in SpEL template expressions.")
@JsonPropertyDescription("Required string: Action parameter name. This will allow the action to accept CLI options named `--<name>` or `-<name>` for single-letter names. Parameter value can be referenced through ${parameters.name} in SpEL template expressions.")
@JsonProperty(required = true) private String name;

@JsonPropertyDescription("Required string: Action parameter description to be shown in action usage help.")
@JsonProperty(required = true) private String description;

@JsonPropertyDescription("Optional string: Comma-separated CLI option aliases. This will allow the action to accept CLI options named '--alias' or '-alias' for single-letter aliases. Aliases cannot be referenced in SpEL expressions.")
@JsonPropertyDescription("Optional string: Comma-separated CLI option aliases. This will allow the action to accept CLI options named `--<alias>` or `-<alias>` for single-letter aliases. Aliases cannot be referenced in SpEL expressions.")
@JsonProperty(required = false) private String cliAliases;

@JsonPropertyDescription("Optional string: Action parameter type. Supported types depends on the fcli module (SSC/FoD) from which the action is being run. See built-in actions for examples of supported types.")
@JsonProperty(required = false) private String type;

@JsonPropertyDescription("Optional map<string,SpEL template expression>: Action parameter type parameters to allow for additional configuration of the type converter configured through 'type'.")
@JsonPropertyDescription("Optional map(string,SpEL template expression): Action parameter type parameters to allow for additional configuration of the type converter configured through 'type'.")
@JsonProperty(required = false) private Map<String, TemplateExpression> typeParameters;

@JsonPropertyDescription("Optional SpEL template expression: Default value for this action parameter if no value is specified by the user.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class ActionRequestTarget implements IActionElement {
@JsonPropertyDescription("Required SpEL template expression: Base URL to use for REST requests to this request target.")
@JsonProperty(required = true) private TemplateExpression baseUrl;

@JsonPropertyDescription("Optional map<string,SpEL template expression>: Headers to be sent to this request target on every request.")
@JsonPropertyDescription("Optional map(string,SpEL template expression): Headers to be sent to this request target on every request.")
@JsonProperty(required = false) private Map<String, TemplateExpression> headers;

// TODO Add support for next page URL producer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class ActionStepRequest extends AbstractActionStep {
@JsonPropertyDescription("Required string if no default target has been configured through defaults.requestTarget: Target on which to execute the REST request. This may be 'fod' (for actions in FoD module), 'ssc' (for actions in SSC module), or a custom request target as configured through 'addRequestTargets'.")
@JsonProperty(required = false) private String target;

@JsonPropertyDescription("Optional map<string,SpEL template expression>: Map of query parameters and corresponding values, for example 'someParam: ${name.property}'.")
@JsonPropertyDescription("Optional map(string,SpEL template expression): Map of query parameters and corresponding values, for example 'someParam: ${name.property}'.")
@JsonProperty(required = false) private Map<String,TemplateExpression> query;

@JsonPropertyDescription("Optional SpEL template expression: Request body to send with the REST request.")
Expand Down

0 comments on commit 2ebb3d8

Please sign in to comment.