-
Notifications
You must be signed in to change notification settings - Fork 215
convertV2: different example for ENUM #817
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
hi @VShingala I have added tests to show that "Schema" resolution is not respected for ENUM values. It takes any random ENUM value. Or is this the expected behaviour? |
So the default behaviour would be like the tests:
If this is correct, I'll try to find the cause. |
@thim81 Yes, that's correct. A bit of correction in case of ENUM for 3rd point is that, when |
@VShingala If you have some time, could you have a look at the PR 818 and share your feedback, so I can wrap-up the PR. |
I have this request body & query param Components with an ENUM, which chooses a different value everytime, while I was expecting that the example would be taken always.
This only happens when using the
convertV2
, with theconvert
it always returnedtype: "<string>"
Request body component:
Expected depending on the parametersResolution:
type: primary
ortype: "<string>"
but every time got a different ENUM value liketype: secondary
,type: work
Query param component:
depending on the parametersResolution:
by: created_at
orby: "<string>"
but every time got a different ENUM value likeby: first_name
,by: updated_at
The text was updated successfully, but these errors were encountered: