Comments (1)
Yes I think some logic could be added to the from_routes
function.
https://github.com/mbuhot/open_api_spex/blob/master/lib/open_api_spex/path_item.ex#L57
In that situation you can parse the route coming from Phoenix and compare it to the declared parameters, emitting a warning if something doesn't match up.
from open_api_spex.
Related Issues (20)
- Tips to validate both the specification and the examples? HOT 4
- Define part of a request schema with a raw json schema HOT 6
- Can't track down an error HOT 2
- Caught off-guard by assert_schema, am I doing something wrong? HOT 6
- Adding "integrity" to CDN-based resources (JS/CSS), thoughts?
- (UndefinedFunctionError) function Map.schema/0 is undefined or private
- mix openapi.spec.json --> specify the output file name or path? HOT 2
- How to specify a response as a map? HOT 1
- Operation parameters cannot include an enum key in their schema
- Missing object properties when using `allOf` on nested structures (one `allOf` object inside other)
- Unique Title Request
- Validation error in query params of type array
- How to include a port number in the routes?
- How to specify enum as an parameter? HOT 1
- Parameter `explode: true` does not work HOT 1
- assert_operation_response is (incorrectly) based on the request's content type, not the response's. HOT 1
- Multiple responses for one response code HOT 2
- Schema oneOf among integer and string doesn't work with integer in a string ("1234") HOT 1
- Examples for anyOf generate by example/1 are broken
- How can I do it when a parameter (in: query) is composed ? HOT 1
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 open_api_spex.