mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
parent
7e7d95fe18
commit
addf8956e3
|
@ -84,11 +84,11 @@ export class FieldModel {
|
||||||
} else if (info.style) {
|
} else if (info.style) {
|
||||||
this.style = info.style;
|
this.style = info.style;
|
||||||
} else if (this.in) {
|
} else if (this.in) {
|
||||||
this.style = DEFAULT_SERIALIZATION[this.in].style;
|
this.style = DEFAULT_SERIALIZATION[this.in]?.style ?? 'form'; // fallback to from in case "in" is invalid
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.explode === undefined && this.in) {
|
if (info.explode === undefined && this.in) {
|
||||||
this.explode = DEFAULT_SERIALIZATION[this.in].explode;
|
this.explode = DEFAULT_SERIALIZATION[this.in]?.explode ?? true;
|
||||||
} else {
|
} else {
|
||||||
this.explode = !!info.explode;
|
this.explode = !!info.explode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user