-
Notifications
You must be signed in to change notification settings - Fork 64
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
Type added manually gets erased when merging #238
Comments
Do you have a RSpec test where a string |
The property being called |
Here's an example https://github.com/dgmora/rspec-openapi/tree/issue-238/type-gets-erased. The test I focused on was
I wanted to check further, but I was not sure what would be the right way to address it. Considering both the original and the new keys (instead of only the new as it's happening now) would probably change the way things are merged and it would not remove changes that had happened in the API. Something else I noticed is that using |
Because of my specs, the following definition is generated:
To solve that, I manually edited the generated file (as indicated here) to have
This however gets overwritten when re-generating the specs, the
type
gets lost. I've narrowed this down to this call:This leaves you with
{:nullable=>true}
. Since you are iteratingspec
's keys andspec
does not havetype
, thetype
gets removed. I wanted to confirm if this is a bug or not. I'm not sure if this somehow conflicts with 'removing' things that aren't present anymore in the API responses?The text was updated successfully, but these errors were encountered: