Skip to content

Commit 5577ebe

Browse files
committed
fix: build errors
1 parent 19e50c9 commit 5577ebe

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/types/api_types/modelMetadataSchemas.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface FieldMetadata {
66
maximum?: number
77
type?: string
88
required?: boolean
9+
properties?: Record<string, FieldMetadata>
910
}
1011

1112
export interface ModelConstraints {
@@ -17,4 +18,4 @@ export interface ModelConstraints {
1718

1819
export interface ModelConstraintsMap {
1920
[modelId: string]: ModelConstraints
20-
}
21+
}

frontend/src/utils/JSPydanticModel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ class JSPydanticModel {
186186

187187
// Add required field if this field is required or has minLength > 0
188188
if (schema.minLength > 0 || schema === '...') {
189+
// @ts-ignore
189190
metadata.required = true
190191
}
191192

0 commit comments

Comments
 (0)