Fixes the formatting for sealed interfaces in the JavaSpring generator#21513
Conversation
|
My view at the time was that if you select |
|
Mr. Porco flies in and responds instantly! In my experience it is generally best to not put But I guess it then comes down to what the project want |
|
I would personally like to have the option to have the sealed structure only apply for interfaces, since what I am after is being able to conduct strongly-typed Maybe an internally hidden additionalProperty similar to how |
|
My bad naming might have put us in a slight corner as now I've set the expectation that |
|
I have introduced a separate PR where I add samples for the I will investigate how to best introduce so that the configuration settings can offer both a setting for where only interfaces are sealed but also a setting for where everything is sealed (i.e., keeping the currently |
@alex-nt recently added some great functionality to support sealed interfaces. I was looking into adding the same for the Spring clients (RestClient and WebClient) but noticed some minor formatting issue and that
finalwas sometimes set on a class even if wasn't part of a sealed structure.It would be great if Alex could review the suggested changes and comment on whether they make sense or not.
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)@cachescrubber (2022/02) @welshm (2022/02) @MelleD (2022/02) @atextor (2022/02) @manedev79 (2022/02) @javisst (2022/02) @borsch (2022/02) @banlevente (2022/02) @Zomzog (2022/09) @martin-mfg (2023/08)