mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore(server): use bounded numbers in workflows (#29009)
* chore(server): use bounded numbers in workflows * chore: increase precision for lat/lon filtering * chore: re-add integer to a json schema type
This commit is contained in:
parent
c4f084f4a5
commit
c5222c7579
5 changed files with 22 additions and 9 deletions
|
|
@ -100,7 +100,7 @@
|
|||
</Field>
|
||||
{:else if schema.type === 'number'}
|
||||
<Field {label} {description}>
|
||||
<NumberInput bind:value={getNumber, setValue} />
|
||||
<NumberInput bind:value={getNumber, setValue} step={schema.precision} min={schema.minimum} max={schema.maximum} />
|
||||
</Field>
|
||||
{:else if schema.type === 'string'}
|
||||
<Field {label} {description}>
|
||||
|
|
|
|||
|
|
@ -93,6 +93,9 @@ export type JSONSchemaProperty = {
|
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
default?: any;
|
||||
enum?: string[];
|
||||
minimum?: number;
|
||||
maximum?: number;
|
||||
precision?: number;
|
||||
array?: boolean;
|
||||
properties?: Record<string, JSONSchemaProperty>;
|
||||
required?: string[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue