sngular / scs-multiapi-plugin

This is a Maven plugin designed to help developers automatizing the creation of code classes from YML files based on AsyncApi and OpenAPI.
http://sngular.com
Mozilla Public License 2.0
48 stars 10 forks source link

[OpenApi] Issue build maps #272

Closed jemacineiras closed 1 year ago

jemacineiras commented 1 year ago

As a Developer I found an issue with a Openapi specification where a property has been defined as a Map of Numbers. Result is a Error Controversial part Configuration: type: object properties: configuration: type: object additionalProperties: type: number example: "ES": 0.8 "US": 0.2

Error Cannot invoke "com.fasterxml.jackson.databind.JsonNode.fields()" because the return value of "com.sngular.api.generator.plugin.common.tools.ApiTool.getNode(com.fasterxml.jackson.databind.JsonNode, String)" is null Thanks