Skip to main content

Type Alias: OpenApiDetailField

OpenApiDetailField = object

Defined in: detail/OpenApiDetail.tsx:31

A field of OpenApiDetail. Give only key to keep the schema-driven label and formatting; add label or render to take over either.

Properties​

key​

key: string

Defined in: detail/OpenApiDetail.tsx:33

Property of the record.


label?​

optional label?: string

Defined in: detail/OpenApiDetail.tsx:35

Label. Defaults to the schema title, else the humanized key.


render?​

optional render?: (args) => React.ReactNode

Defined in: detail/OpenApiDetail.tsx:37

Custom value content.

Parameters​

ParameterType
args{ record: JsonObject; value: JsonValue | undefined; }
args.recordJsonObject
args.valueJsonValue | undefined

Returns​

React.ReactNode