Skip to content

Commit

Permalink
Update tool shed schema for parameter model changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 8, 2024
1 parent 9057d55 commit 19319ca
Showing 1 changed file with 188 additions and 0 deletions.
188 changes: 188 additions & 0 deletions lib/tool_shed/webapp/frontend/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,57 @@ export interface components {
*/
parameter_type: "gx_drill_down"
}
/** EmptyFieldParameterValidatorModel */
EmptyFieldParameterValidatorModel: {
/**
* Implicit
* @default false
*/
implicit: boolean
/** Message */
message?: string | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default empty_field
* @constant
* @enum {string}
*/
type: "empty_field"
}
/**
* ExpressionParameterValidatorModel
* @description Check if a one line python expression given expression evaluates to True.
*
* The expression is given is the content of the validator tag.
*/
ExpressionParameterValidatorModel: {
/** Expression */
expression: string
/**
* Implicit
* @default false
*/
implicit: boolean
/** Message */
message?: string | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default expression
* @constant
* @enum {string}
*/
type: "expression"
}
/** FailedRepositoryUpdateMessage */
FailedRepositoryUpdateMessage: {
/** Err Msg */
Expand Down Expand Up @@ -1514,6 +1565,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_float"
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][]
/** Value */
value?: number | null
}
Expand Down Expand Up @@ -1666,6 +1722,42 @@ export interface components {
* @enum {string}
*/
ImageType: "Docker" | "Singularity" | "Conda"
/** InRangeParameterValidatorModel */
InRangeParameterValidatorModel: {
/**
* Exclude Max
* @default false
*/
exclude_max: boolean
/**
* Exclude Min
* @default false
*/
exclude_min: boolean
/**
* Implicit
* @default false
*/
implicit: boolean
/** Max */
max?: number | null
/** Message */
message?: string | null
/** Min */
min?: number | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default in_range
* @constant
* @enum {string}
*/
type: "in_range"
}
/** InstallInfo */
InstallInfo: {
metadata_info?: components["schemas"]["RepositoryMetadataInstallInfo"] | null
Expand Down Expand Up @@ -1704,6 +1796,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_integer"
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][]
/** Value */
value?: number | null
}
Expand All @@ -1716,13 +1813,61 @@ export interface components {
/** Value */
value: string
}
/** LengthParameterValidatorModel */
LengthParameterValidatorModel: {
/**
* Implicit
* @default false
*/
implicit: boolean
/** Max */
max?: number | null
/** Message */
message?: string | null
/** Min */
min?: number | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default length
* @constant
* @enum {string}
*/
type: "length"
}
/** MessageExceptionModel */
MessageExceptionModel: {
/** Err Code */
err_code: number
/** Err Msg */
err_msg: string
}
/** NoOptionsParameterValidatorModel */
NoOptionsParameterValidatorModel: {
/**
* Implicit
* @default false
*/
implicit: boolean
/** Message */
message?: string | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default no_options
* @constant
* @enum {string}
*/
type: "no_options"
}
/** Organization */
Organization: {
/**
Expand Down Expand Up @@ -1800,6 +1945,37 @@ export interface components {
/** Xrefs */
xrefs: components["schemas"]["XrefDict"][]
}
/**
* RegexParameterValidatorModel
* @description Check if a regular expression **matches** the value, i.e. appears
* at the beginning of the value. To enforce a match of the complete value use
* ``$`` at the end of the expression. The expression is given is the content
* of the validator tag. Note that for ``selects`` each option is checked
* separately.
*/
RegexParameterValidatorModel: {
/** Expression */
expression: string
/**
* Implicit
* @default false
*/
implicit: boolean
/** Message */
message?: string | null
/**
* Negate
* @default false
*/
negate: boolean
/**
* Type
* @default regex
* @constant
* @enum {string}
*/
type: "regex"
}
/** RepeatParameterModel */
RepeatParameterModel: {
/** Argument */
Expand Down Expand Up @@ -2254,6 +2430,8 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_select"
/** Validators */
validators: components["schemas"]["NoOptionsParameterValidatorModel"][]
}
/** Service */
Service: {
Expand Down Expand Up @@ -2366,6 +2544,16 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_text"
/**
* Validators
* @default []
*/
validators: (
| components["schemas"]["LengthParameterValidatorModel"]
| components["schemas"]["RegexParameterValidatorModel"]
| components["schemas"]["ExpressionParameterValidatorModel"]
| components["schemas"]["EmptyFieldParameterValidatorModel"]
)[]
/** Value */
value?: string | null
}
Expand Down

0 comments on commit 19319ca

Please sign in to comment.