-
-
Notifications
You must be signed in to change notification settings - Fork 528
@Currency and swagger documentation #621
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
Comments
@bnasslahsen Hope its an interesting problem. My guess is its because of the replacement of the MonetaryAmount by the converter - cant see the @Currency since the type having @Currency is replaced |
@bnasslahsen Also see https://github.com/teq-niq/sample/tree/extending3 |
False alarm. The annotations are there. I will figure it out. |
Hi @bnasslahsen ,
} Thought I will let you know. Didnt raise a new ticket. |
In order to give more flexibility to the applications, to choose or not to use it, and aslo to make it easier to support extensions for MonetaryAmount as you mentionned. |
Ok. It broke my examples that I had shared to swagger-core for the extensions. Since then fixed it. |
Hi @bnasslahsen
Please have a look at this- https://github.com/teq-niq/sample/tree/extending1

I am trying to show using swagger extensions validation constraints that swagger or springdoc might not be showing.
As you can see Its generally working well. But I dont see a x-Currency: USD.
Can we solve this? Any suggestions?
Raghu
A valid input will be this
{
"id": 0,
"worth": {
"amount": 99.96,
"currency": "USD"
},
"registrationDate": "20200101",
"firstName": "string",
"lastName": "string",
"email": "[email protected]",
"email1": "[email protected]",
"age": 20,
"creditCardNumber": "4111111111111111"
}
The @Currency check is working well.
The text was updated successfully, but these errors were encountered: