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 22, 2024
1 parent 078ad61 commit e053eee
Showing 1 changed file with 208 additions and 0 deletions.
208 changes: 208 additions & 0 deletions lib/tool_shed/webapp/frontend/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,16 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_directory_uri"
/**
* Validators
* @default []
*/
validators: (
| components["schemas"]["LengthParameterValidatorModel"]
| components["schemas"]["RegexParameterValidatorModel"]
| components["schemas"]["ExpressionParameterValidatorModel"]
| components["schemas"]["EmptyFieldParameterValidatorModel"]
)[]
}
/** DrillDownOptionsDict */
DrillDownOptionsDict: {
Expand Down Expand Up @@ -1440,6 +1450,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 +1575,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_float"
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][]
/** Value */
value?: number | null
}
Expand Down Expand Up @@ -1629,6 +1695,16 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_hidden"
/**
* Validators
* @default []
*/
validators: (
| components["schemas"]["LengthParameterValidatorModel"]
| components["schemas"]["RegexParameterValidatorModel"]
| components["schemas"]["ExpressionParameterValidatorModel"]
| components["schemas"]["EmptyFieldParameterValidatorModel"]
)[]
/** Value */
value: string | null
}
Expand Down Expand Up @@ -1666,6 +1742,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 +1816,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_integer"
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][]
/** Value */
value?: number | null
}
Expand All @@ -1716,13 +1833,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 +1965,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 +2450,8 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_select"
/** Validators */
validators: components["schemas"]["NoOptionsParameterValidatorModel"][]
}
/** Service */
Service: {
Expand Down Expand Up @@ -2366,6 +2564,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 e053eee

Please sign in to comment.