You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then spec was specified on a line and the command was executed OPENAPI=1 rspec spec/requests/samples_spec.rb:10,
yaml left only the specified parts and deleted the parts that were not specified.
This automatic deletion is a new behavior introduced in v0.7.0.
In the previous versions, to delete the non-existent endpoints/parameters/fields in a request or response, users needed to delete the OpenAPI file and regenerate from zero.
This is not great since manually-added parts are also erased.
Or you might carefully delete the non-existent parts manually, which is time-consuming.
So I highly recommend running all specs to refresh your OpenAPI file in CI.
I assume that most users are already running all specs in CI.
However, I also understand that users often run a subset of specs locally to confirm their changes.
Automatic deletion is implemented here:
When running
OPENAPI=1 rspec spec/requests/samples_spec.rb:15
is run, the schema that is not under test is also deleted.request spec
openapi.yaml created after running
OPENAPI=1 rspec spec/requests/samples_spec.rb
Then spec was specified on a line and the command was executed
OPENAPI=1 rspec spec/requests/samples_spec.rb:10
,yaml left only the specified parts and deleted the parts that were not specified.
I expect the following behavior, are there any options?
The text was updated successfully, but these errors were encountered: