Skip to content

Commit

Permalink
REbuild schema for validators...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 5, 2024
1 parent 9ac249c commit 3bef485
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 0 deletions.
158 changes: 158 additions & 0 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9077,6 +9077,23 @@ export interface components {
* @enum {string}
*/
ElementsFromType: "archive" | "bagit" | "bagit_archive" | "directory";
/** EmptyFieldParameterValidatorModel */
EmptyFieldParameterValidatorModel: {
/** Message */
message?: string | null;
/**
* Negate
* @default false
*/
negate: boolean;
/**
* Type
* @default empty_field
* @constant
* @enum {string}
*/
type: "empty_field";
};
/** EncodedDataItemSourceId */
EncodedDataItemSourceId: {
/**
Expand Down Expand Up @@ -9387,6 +9404,30 @@ export interface components {
};
/** ExportTaskListResponse */
ExportTaskListResponse: components["schemas"]["ObjectExportTaskResponse"][];
/**
* 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;
/** Message */
message?: string | null;
/**
* Negate
* @default false
*/
negate: boolean;
/**
* Type
* @default expression
* @constant
* @enum {string}
*/
type: "expression";
};
/** ExtraFileEntry */
ExtraFileEntry: {
/** @description The class of this entry, either File or Directory. */
Expand Down Expand Up @@ -9789,6 +9830,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_float";
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][];
/** Value */
value?: number | null;
};
Expand Down Expand Up @@ -12153,6 +12199,37 @@ export interface components {
*/
uri: string;
};
/** InRangeParameterValidatorModel */
InRangeParameterValidatorModel: {
/**
* Exclude Max
* @default false
*/
exclude_max: boolean;
/**
* Exclude Min
* @default false
*/
exclude_min: 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";
};
/** InputDataCollectionStep */
InputDataCollectionStep: {
/**
Expand Down Expand Up @@ -12429,6 +12506,11 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_integer";
/**
* Validators
* @default []
*/
validators: components["schemas"]["InRangeParameterValidatorModel"][];
/** Value */
value?: number | null;
};
Expand Down Expand Up @@ -13885,6 +13967,27 @@ export interface components {
*/
LIBRARY_MODIFY_in: string[] | string | null;
};
/** LengthParameterValidatorModel */
LengthParameterValidatorModel: {
/** 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";
};
/** LibraryAvailablePermissions */
LibraryAvailablePermissions: {
/**
Expand Down Expand Up @@ -14587,6 +14690,23 @@ export interface components {
*/
slug: string;
};
/** NoOptionsParameterValidatorModel */
NoOptionsParameterValidatorModel: {
/** Message */
message?: string | null;
/**
* Negate
* @default false
*/
negate: boolean;
/**
* Type
* @default no_options
* @constant
* @enum {string}
*/
type: "no_options";
};
/**
* NotificationBroadcastUpdateRequest
* @description A notification update request specific for broadcasting.
Expand Down Expand Up @@ -15718,6 +15838,32 @@ export interface components {
/** Workflow */
workflow: string;
};
/**
* 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;
/** Message */
message?: string | null;
/**
* Negate
* @default false
*/
negate: boolean;
/**
* Type
* @default regex
* @constant
* @enum {string}
*/
type: "regex";
};
/** ReloadFeedback */
ReloadFeedback: {
/** Failed */
Expand Down Expand Up @@ -16135,6 +16281,8 @@ export interface components {
* @enum {string}
*/
parameter_type: "gx_select";
/** Validators */
validators: components["schemas"]["NoOptionsParameterValidatorModel"][];
};
/** ServerDirElement */
ServerDirElement: {
Expand Down Expand Up @@ -17166,6 +17314,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
Loading

0 comments on commit 3bef485

Please sign in to comment.