mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +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) {
|
||||
if (Boolean.TRUE.equals(schema.getAdditionalProperties())) {
|
||||
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 {
|
||||
addPropProp = fromProperty(getAdditionalPropertiesName(), (Schema) schema.getAdditionalProperties(), false);
|
||||
|
@ -1656,7 +1656,7 @@ export interface Whale {
|
||||
* @interface Zebra
|
||||
*/
|
||||
export interface Zebra {
|
||||
[key: string]: any;
|
||||
[key: string]: any | any;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -175,7 +175,7 @@ export interface ArrayTest {
|
||||
* @interface Banana
|
||||
*/
|
||||
export interface Banana {
|
||||
[key: string]: any;
|
||||
[key: string]: any | any;
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user