jscheffl commented on code in PR #45270: URL: https://github.com/apache/airflow/pull/45270#discussion_r1915707085
########## airflow/ui/src/queries/useDagParams.ts: ########## @@ -19,10 +19,36 @@ import { useDagServiceGetDagDetails } from "openapi/queries"; import { toaster } from "src/components/ui"; +export type DagParamsSpec = Record<string, ParamSpec>; + +export type ParamSpec = { + description: string | null; + schema: ParamSchema; + value: unknown; +}; + +export type ParamSchema = { + const: string | null; + description_md: string | null; + enum: Array<string> | null; + examples: Array<string> | null; + format: string | null; + items: Record<string, unknown> | null; + maximum: number | null; + maxLength: number | null; + minimum: number | null; + minLength: number | null; + section: string | null; + title: string | null; + type: Array<string> | string | null; + values_display: Record<string, string> | null; +}; Review Comment: Added a TODO. I am okay to check in a sepearate PR -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org