mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 06:30:52 +00:00
fix additional properties any type
This commit is contained in:
parent
07d4f7d534
commit
8ecf9e352d
@ -3186,9 +3186,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
} else if (schema.getAdditionalProperties() instanceof Boolean) {
|
} else if (schema.getAdditionalProperties() instanceof Boolean) {
|
||||||
if (Boolean.TRUE.equals(schema.getAdditionalProperties())) {
|
if (Boolean.TRUE.equals(schema.getAdditionalProperties())) {
|
||||||
isAdditionalPropertiesTrue = true;
|
isAdditionalPropertiesTrue = true;
|
||||||
addPropProp = fromProperty(getAdditionalPropertiesName(), new Schema(), false);
|
|
||||||
// TODO revise below as it should be true only if it's any type, not boolean
|
|
||||||
additionalPropertiesIsAnyType = true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
addPropProp = fromProperty(getAdditionalPropertiesName(), (Schema) schema.getAdditionalProperties(), false);
|
addPropProp = fromProperty(getAdditionalPropertiesName(), (Schema) schema.getAdditionalProperties(), false);
|
||||||
|
@ -1656,7 +1656,7 @@ export interface Whale {
|
|||||||
* @interface Zebra
|
* @interface Zebra
|
||||||
*/
|
*/
|
||||||
export interface Zebra {
|
export interface Zebra {
|
||||||
[key: string]: any;
|
[key: string]: any | any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -175,7 +175,7 @@ export interface ArrayTest {
|
|||||||
* @interface Banana
|
* @interface Banana
|
||||||
*/
|
*/
|
||||||
export interface Banana {
|
export interface Banana {
|
||||||
[key: string]: any;
|
[key: string]: any | any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user