Skip to content
New issue

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

simple allOf case #1657

Open
trajano opened this issue Dec 11, 2024 · 0 comments
Open

simple allOf case #1657

trajano opened this issue Dec 11, 2024 · 0 comments

Comments

@trajano
Copy link

trajano commented Dec 11, 2024

This is to extend the proposal for allOf but for the simple case

For each allOf

  • if type is not the same across then it should translate to
import jakarta.validation.constraints.Null;
...
@Null
Object propertyThatShouldBeNull;

Or throw an IllogicalSchemaException

  • If all types are objects
    • additionalProperties = all entries have additionalProperties == true
    • required = union of all required lists in each entry
    • properties = union of all properties in each entry (there should be something further to handle duplicates, but we can put a warning for that situation for now)

I am just after the "generation" of the POJO but it does not need to be "precise" because the validation can be done based on the real schema on a different part of the code, I think the objective is to at least provide the getters and setters that would be used at minimum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant