Open
Description
Description
This is just a question, maybe a feature request: I'd like to omit JSON-Fields in the request and don't know how to implement it.
Let's take the sensor_id from the EventSubmitRequest I attached:
In some cases, the sensor_id is maybe not needed.
When I look at the generated sensorId-property in the request-class I see an int that is initialized with '0'.
In my case, if I now send my request, my node-server gets the id '0', but it expects undefined
Is it possible to tell the generated code, that the int-field in this example should be omitted in the request-JSON?
Thanks a lot in advance!
Swagger-codegen version
2.2.3
Swagger declaration file content or url
EventSubmitRequest:
properties:
device_id:
type: integer
format: int32
sensor_id:
type: integer
format: int32
created:
type: string
format: date-time
context:
description: Additional information. E.g. Communication trace
type: string
message:
type: string
severity:
type: string
enum:
- Debug
- Info
- Warning
- Error