forked from loafle/openapi-generator-original
Fix generation of map model examples (#8063)
When generation examples of objects with additional properties, we use the map syntax inside a model instantiation, which is incorrect. This fixes it by checking for model at the right place.
This commit is contained in:
@@ -51,7 +51,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
additional_properties_with_array_of_enums = AdditionalPropertiesWithArrayOfEnums(
|
||||
"key": [
|
||||
key=[
|
||||
EnumClass("-efg"),
|
||||
],
|
||||
) # AdditionalPropertiesWithArrayOfEnums | Input enum (optional)
|
||||
|
||||
Reference in New Issue
Block a user