1
0
mirror of synced 2025-12-23 03:44:00 -05:00

New nested param table styles for REST (#30862)

This commit is contained in:
Robert Sese
2022-09-20 14:57:49 -05:00
committed by GitHub
parent 3b1a1eff2f
commit 3d45346c34
9 changed files with 249 additions and 143 deletions

View 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[]
}