-
Notifications
You must be signed in to change notification settings - Fork 59
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
If the class object is not annotated with @valid, I think no constraints should be generated. #471
Comments
Hi @hhtqaq, The only difference I see in your example is that What exactly is it you want to fix then? For further help (if required), it'd be good to include your schema generator's configuration as reference. |
hi! @CarstenWickner , I generated automated use cases based on the generated json schema. In this case, it will not work as I expected. At first I thought it was right, but I found that the spring framework does not do this. If the What should I do to solve this problem? here is my schema generator's configuration
|
I would question the reason for the If you add |
@CarstenWickner You are right. |
You are correct, that's one way to leverage this feature. As I mentioned above: there are roundabout ways to achieve what you're describing, it just gets awkward when the same sub-schema is referenced in multiple places: once with |
okkya! thanks! i need this feature |
I've tried a few things now, but so far, I only found a way that cannot handle circular references. Unfortunately, a missing I have to drop this for the time being, but are open for any suggestions or PR on this topic. |
i think result should be :
however currently it is
I think that when I add
@Valid
to inlineClass, it should be displayed like this, otherwise it will not comply with the constraints of the spring framework.Or is there any extension I can modify it with?
The text was updated successfully, but these errors were encountered: