New nested param table styles for REST (#30862)
This commit is contained in:
32
components/parameter-table/types.ts
Normal file
32
components/parameter-table/types.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export interface Parameter {
|
||||
in: string
|
||||
name: string
|
||||
description: string
|
||||
required: boolean
|
||||
schema: {
|
||||
type: string
|
||||
default?: string
|
||||
enum?: Array<string>
|
||||
}
|
||||
}
|
||||
|
||||
export interface BodyParameter {
|
||||
in: string
|
||||
name: string
|
||||
description: string
|
||||
type: string
|
||||
isRequired?: boolean
|
||||
default?: string
|
||||
enum?: Array<string>
|
||||
childParamsGroups?: Array<ChildParameter>
|
||||
}
|
||||
|
||||
export interface ChildParameter {
|
||||
name: string
|
||||
description: string
|
||||
type: string
|
||||
isRequired?: boolean
|
||||
enum?: Array<string>
|
||||
default?: string
|
||||
childParamsGroups?: ChildParameter[]
|
||||
}
|
||||
Reference in New Issue
Block a user