We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What would you like to be added: Currently, this yaml
taskList: type: array items: type: object title: TaskItem minProperties: 1 maxProperties: 1 additionalProperties: $ref: '#/$defs/task'
is translated to
@Generated("jsonschema2pojo") public class TaskItem implements Serializable { @JsonIgnore @Valid private Map<String, Task> additionalProperties = new LinkedHashMap<String, Task>(); private final static long serialVersionUID = 2309610577983775837L; @JsonAnyGetter public Map<String, Task> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Task value) { this.additionalProperties.put(name, value); } public TaskItem withAdditionalProperty(String name, Task value) { this.additionalProperties.put(name, value); return this; } }
which ideally should be
@Generated("jsonschema2pojo") public class TaskItem implements Serializable { @JsonIgnore @Valid private Map<String, Task> additionalProperties = new LinkedHashMap<String, Task>(); private final static long serialVersionUID = 2309610577983775837L; private String name; private Task task; public Task getTask() { return task; } public void setTask(Task task) { this.task = task; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
Why is this needed:
To make API more usable
The text was updated successfully, but these errors were encountered:
[Fix serverlessworkflow#380] Change item API
4e3c193
[Fix serverlessworkflow#380] SwitchPRoperty to SwitchItem
aa469c3
2fdcdab
Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
a050a53
[Fix serverlessworkflow#380] oneOf as Optional
2e1b9e0
eb0b906
Revert "[Fix serverlessworkflow#380] oneOf as Optional"
9a91a05
This reverts commit eb0b906.
77746af
Merge pull request #383 from fjtirado/Fix_#380
9fdd1fd
[Fix #380] Change item API
fjtirado
Successfully merging a pull request may close this issue.
What would you like to be added:
Currently, this yaml
is translated to
which ideally should be
Why is this needed:
To make API more usable
The text was updated successfully, but these errors were encountered: