Skip to content

Commit

Permalink
dependencies: update openapi-generator-cli (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNenashev authored Feb 7, 2024
1 parent 1f4a0a8 commit b984d31
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions odd-platform-ui/generate.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

GENERATOR_IMAGE="openapitools/openapi-generator-cli:v5.1.1"
GENERATOR_IMAGE="openapitools/openapi-generator-cli:v7.2.0"
CONFIG_PATH="odd-platform-ui/openapi-config.yaml"
WORKDIR="//mnt" # Using double-slash for compatibility with Windows
HOST_DIRECTORY=/$(pwd)/..

docker run -v $HOST_DIRECTORY:$WORKDIR -w $WORKDIR --rm $GENERATOR_IMAGE generate -c $CONFIG_PATH
docker run -v "$HOST_DIRECTORY:$WORKDIR" -w "$WORKDIR" --rm "$GENERATOR_IMAGE" generate -c "$CONFIG_PATH"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const MetadataValueEditField: React.FC<MetadataValueEditFieldProps> = ({
const defaultText =
metadataType === MetadataFieldType.ARRAY ? 'item1,item2,...' : 'Value';

const inputTypes: MetadataFieldType[] = [
MetadataFieldType.INTEGER,
MetadataFieldType.FLOAT,
];

if (metadataType === MetadataFieldType.DATETIME) {
return (
<Controller
Expand Down Expand Up @@ -112,12 +117,7 @@ const MetadataValueEditField: React.FC<MetadataValueEditFieldProps> = ({
variant='main-m'
label={labeled ? t('Value') : undefined}
placeholder={labeled ? '' : defaultText}
type={
metadataType &&
[MetadataFieldType.INTEGER, MetadataFieldType.FLOAT].includes(metadataType)
? 'number'
: 'text'
}
type={metadataType && inputTypes.includes(metadataType) ? 'number' : 'text'}
step={metadataType === MetadataFieldType.FLOAT ? 'any' : '1'}
/>
)}
Expand Down
12 changes: 6 additions & 6 deletions odd-platform-ui/src/components/Search/Results/Results.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ type MainColNames = 'nm' | 'nd' | 'ow' | 'gr' | 'cr' | 'up' | 'st';
type AddColNames = 'us' | 'rc' | 'sr' | 'tr' | 'en' | 'su' | 'ne';

export type SearchTabsNames =
| DataEntityClassNameEnum.SET
| DataEntityClassNameEnum.CONSUMER
| DataEntityClassNameEnum.TRANSFORMER
| DataEntityClassNameEnum.INPUT
| DataEntityClassNameEnum.ENTITY_GROUP
| DataEntityClassNameEnum.QUALITY_TEST
| typeof DataEntityClassNameEnum.SET
| typeof DataEntityClassNameEnum.CONSUMER
| typeof DataEntityClassNameEnum.TRANSFORMER
| typeof DataEntityClassNameEnum.INPUT
| typeof DataEntityClassNameEnum.ENTITY_GROUP
| typeof DataEntityClassNameEnum.QUALITY_TEST
| 'all'
| 'my';
export type ColGridSizes = Record<MainColNames, GridSize> &
Expand Down

0 comments on commit b984d31

Please sign in to comment.