Comments (5)
Hmm, actually the problem seems to be that #/$defs/reference
is not mapped to urn:defs-test#/$defs/reference
from jsonschemafriend.
Thanks for the report and apologies for the delay investigating. There's been a problem with the scheme 'urn'. It seems it doesn't play nice with the constructor for java.net.URI, which I use throughout. I pushed enough to fix the precise issue above (thanks for the test case) but will need to do more digging to make sure it works throughout.
from jsonschemafriend.
When I use urn:
with $dynamicRef
/$dynamicAnchor
I get same error.
from jsonschemafriend.
Sorry to read that; could you confirm that you are using 0.11.2.
If you are, could you paste an example of a failed case here? You can check it in advance on https://tryjsonschematypes.appspot.com/#validate
from jsonschemafriend.
I got java.lang.IllegalStateException: java.net.URISyntaxException: Expected scheme-specific part at index 4: urn:
for
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:java:common.proto.Message",
"title": "Message itself",
"type": "object",
"properties": {
"head": {
"type": "object"
},
"body": {
"$dynamicRef": "#body"
}
},
"required": ["head", "body"],
"additionalProperties": false,
"$defs": {
"body": {
"$dynamicAnchor": "body",
"type": "object"
}
}
}
from jsonschemafriend.
Related Issues (20)
- update to commons-collections4
- Issue in Android 5 HOT 1
- string date-time format HOT 1
- Support for custom error message in schema
- Parsing composite schema object definition HOT 5
- Support for JSON Schema simplification? HOT 3
- com.ibm.icu:icu4j is too heavy
- Failing to load draft-07 type schemas (probably lower ones too) HOT 1
- net.jimblackler.usejson.SyntaxError: JSON5: invalid end of input at 1:1 HOT 15
- Performance and functional comparison HOT 1
- Incorrect handling of format-assertions
- Set module name HOT 2
- type: integer does not match specification HOT 2
- The $ref is not resolved when referred schema is located in non-standard keywords HOT 1
- Schema with a wrong pointers to subschema passes the validation HOT 2
- SchemaStore enters infinite loop when $schema returns no content HOT 2
- Add support for custom formats
- 该库不支持安卓26以前的版本,请慎用。(This library does not support versions prior to Android 26, please use with caution.) HOT 1
- Support for custom types when document to be validated passed via a Map HOT 7
- Regular expression validation with CachedRegExPatternSupplier
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 jsonschemafriend.