Comments (7)
Hi Jamie,
Yes, this is very much on the roadmap. I see this being an essential feature of libopenapi
soon. It would be a new module called validation
, and we would build code in there that uses the other modules like the datamodel
and documents to provide the same excellent functionality that kin-openapi
provides.
The feature does not exist yet. It's on my radar, however. January/February 2023 timeframe is when I will be able to start work on it. Unless you want to take a look at it?
Thanks.
from libopenapi.
I'm going to work on this feature next.
from libopenapi.
If you want to follow along as this feature is built out, work is happening here daily: https://github.com/pb33f/libopenapi-validator
The validator will be another package that depends on libopenapi, it will validate http requests and responses as well as documents.
from libopenapi.
v0.0.1
of libopenapi-validator
is available at https://github.com/pb33f/libopenapi-validator
from libopenapi.
Is there any update on this or branches to look at / contribute to? I'd be happy to give it a shot :)
from libopenapi.
Not yet, priority has been given to building out a mutable model, however, this feature is rising to the top. Perhaps in the next month or so, I can reach it. However, if you would like to take a stab at it yourself - go for it!
from libopenapi.
Documentation is online at: https://pb33f.io/libopenapi/validation/
There will be bugs, but let's move the conversation over to: https://github.com/pb33f/libopenapi-validator
from libopenapi.
Related Issues (20)
- Validation of simple parameters HOT 2
- panic in index/resolver HOT 2
- How to create bodySchema & other params HOT 3
- Rolodex.Resolve() doesn't override the description from #ref definition HOT 6
- example for documentation doesn't work? HOT 4
- Render() function panics due to ignored error HOT 1
- nullable: true for response validation HOT 1
- ref in schema cant parse HOT 3
- Support `$dynamicAnchor` and `$dynamicRef` HOT 2
- Validation and Bundling problems HOT 9
- Remote reference cannot be resolved HOT 2
- issue when rendering yaml with integer numbers HOT 5
- Panic while trying to Unmarshal a Schema HOT 3
- type of enum is nil HOT 1
- Duplicated path parameter in a path is deemed invalid HOT 3
- `Index.GetAllSchemas()` regression in values returned HOT 6
- nullable reference: hard to properly identify it HOT 4
- Example in the doc is not compiling HOT 1
- Panic During Schema Rendering HOT 2
- Circular reference does not return an error HOT 3
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 libopenapi.