chore(oas): [8/n] improve oas schemas (#9163)
Improve OAS schemas [8/n]
This commit is contained in:
@@ -31,6 +31,12 @@ class SchemaFactory {
|
||||
BigNumber: {
|
||||
type: "string",
|
||||
},
|
||||
IBigNumber: {
|
||||
type: "number",
|
||||
},
|
||||
BigNumberValue: {
|
||||
type: "number",
|
||||
},
|
||||
}
|
||||
/**
|
||||
* Schemas used only for response types.
|
||||
@@ -60,7 +66,7 @@ class SchemaFactory {
|
||||
public tryGetSchema(
|
||||
name: string,
|
||||
additionalData?: Partial<OpenApiSchema>,
|
||||
type: "request" | "response" | "all" = "all"
|
||||
type: "request" | "query" | "response" | "all" = "all"
|
||||
): OpenApiSchema | undefined {
|
||||
const schemasFactory =
|
||||
type === "response"
|
||||
|
||||
Reference in New Issue
Block a user