Comments (4)
I added an initial support of rack-test and non-Rails apps like Roda. Please try v0.3.0.
Though path
and summary
here are probably not that great compared to ones generated for Rails. I'd appreciate your input or patch for these two lines as a Roda user.
from rspec-openapi.
It worked
from rspec-openapi.
After require "rspec/openapi"
in spec get errors:
Failure/Error:
def request(uri, env = {}, &block)
uri = parse_uri(uri, env)
env = env_for(uri, env)
process_request(uri, env, &block)
end
ArgumentError:
wrong number of arguments (given 0, expected 1..2)
Shared Example Group: "user success login" called from ./spec/idp_spec.rb:20
# /usr/local/bundle/gems/rack-test-1.1.0/lib/rack/test.rb:116:in `request'
# /usr/local/bundle/gems/rspec-openapi-0.2.2/lib/rspec/openapi/hooks.rb:11:in `block in <top (required)>'
from rspec-openapi.
It's currently so https://github.com/k0kubun/rspec-openapi#current-limitations, but I can take a look at supporting Roda + rack-test.
from rspec-openapi.
Related Issues (20)
- Suggestion for the readOnly property HOT 1
- Getting invalid byte sequence in UTF-8 when the response is a pdf HOT 3
- Difference in Empty Values Handling in Examples HOT 3
- Dealing with responses with different possible bodies for the same status code HOT 1
- requestBody should not merge examples for error HOT 2
- Setting additionalProperties = false HOT 1
- Include property descriptions in response schema? HOT 1
- Regenerating (remove file and run rspec) the schema without changing the code, generates different file. HOT 1
- Authorization HTTP header is inserted as parameter even though there is securityScheme defined HOT 2
- Using `RSpec::OpenAPI.path = ->` but for different audiences HOT 1
- Evaluate proc for RSpec::OpenAPI.title HOT 2
- Manually edited oneOf in response schema is overridden HOT 4
- Hanami framework support HOT 10
- [FEATURE] Create multiple examples for multiple tests for same error code. HOT 5
- preserve comment in openapi yaml HOT 1
- Rails 7.1 transforms request.response_body to Nokogiri class if it is HTML
- Can we remove required parameters for request body? HOT 6
- If parameter has symbol, it will be error HOT 6
- [BUG] NotImplementedError: type detection is not implemented for: :json when ID not found HOT 2
- hanami: non-integer path variable is not supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec-openapi.