Comments (4)
@Stranger6667 I'll try to update all the keywords in order to allow validation of a generic JsonType. I'll try to compare it with the benchmarks to identify possible regressions or additional issues
from jsonschema-rs.
Do you mean non-serde types?
from jsonschema-rs.
Ideally (at least this what I was experimenting with) the Validate
trait should be modified into something like
trait Validate<J: JsonType> {
fn validate(&self, schema: JsonSchema<J>, value: &J) -> ...;
fn is_valid(&self, schema: JsonSchema<J>, value: &J) -> bool;
}
By doing so we might validate for any type J
that implements JsonType
trait.
If by doing it we don't introduce performance regressions then we might simplify the integration with foreign platforms (which might be Python or any other FFI) that adhere to JsonType
trait.
Still this is a very preliminary idea, as I need to finalise the test branch to see the feasibility (especially comparing performances).
Once I have results (maybe over the weekend) I'll post something in here.
from jsonschema-rs.
Done in #54.
Sdist & wheels for manylinux2010 are here
from jsonschema-rs.
Related Issues (20)
- Feature Request: Support JSON Table Schema HOT 1
- Custom Keywords HOT 1
- HTTP Resolver Not Working? HOT 15
- Library cannot be build with `minimal-versions` HOT 1
- Build wheels for Mac OS M1 HOT 1
- Cross compilation doesn't work with 0.15.1 enabling `reqwest/native-tls` by default
- Compilation fails with no default features HOT 3
- Allow compiling only with resolve-file feature HOT 1
- reqwest is not optional with version 0.15.2 ? HOT 3
- Validate value via pointer
- simd support? HOT 6
- ERROR: Failed building wheel for jsonschema_rs on Python 3.10 on Windows HOT 4
- How to use custom resolvers in python? HOT 2
- Avoid `PosInt` & `NegInt` comparison
- unexpected draft2019-09 (and up) $ref behavior HOT 5
- Custom Validators
- i17n support (custom error messages) HOT 2
- stack overflow
- Async SchemaResolver
- SystemError: <method 'validate' of 'jsonschema_rs.JSONSchema' objects> returned a result with an exception set 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 jsonschema-rs.