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
Hi, thanks for sharing this amazing gem. I updated to version 0.18.1 and I ran into a problem when trying to create openapi from an endpoint in which a non-existent ID is passed as a parameter. Something like:
context'when resource not found'dolet(:resource_id){'abc123'}beforedogetresource_url(resource_id),as: :jsonendit{is_expected.tohave_http_status(:not_found)}end
and error:
RSpec::OpenAPI got errors building 1 requests
#<NotImplementedError: type detection is not implemented for: :json>: #<struct RSpec::OpenAPI::Record http_method="GET", path="/api/v1/resources/abc123", path_params={:format=>:json, :controller=>"api/v1/resources", :action=>"show", :resource_id=>"abc123"}, query_params={}, request_params={}, required_request_params=[], request_content_type="application/json", request_headers=[], summary="Find resource by resource_id", tags=["resources"], operation_id=nil, description="Is expected to respond with a not_found status code (404)", security=nil, deprecated=nil, status=404, response_body={"message"=>"Resource ID: not found"}, response_headers=[], response_content_type="application/json", response_content_disposition=nil>
In the 0.17.0 version everything was working perfectly fine. I hope this continues to evolve. Thank you very much.
The text was updated successfully, but these errors were encountered:
laerciosb
changed the title
ID not found
NotImplementedError when ID not found
Apr 21, 2024
laerciosb
changed the title
NotImplementedError when ID not found
NotImplementedError: type detection is not implemented for: :json when ID not found
Apr 21, 2024
laerciosb
changed the title
NotImplementedError: type detection is not implemented for: :json when ID not found
[BUG] NotImplementedError: type detection is not implemented for: :json when ID not found
Apr 21, 2024
Hi, thanks for sharing this amazing gem. I updated to version 0.18.1 and I ran into a problem when trying to create openapi from an endpoint in which a non-existent ID is passed as a parameter. Something like:
and error:
In the 0.17.0 version everything was working perfectly fine. I hope this continues to evolve. Thank you very much.
The text was updated successfully, but these errors were encountered: