Comments (6)
This should be fixed in the next version.
from json-schema-validator.
These classes no longer exist.
import com.networknt.schema.uri.URIFactory;
import com.networknt.schema.uri.URIFetcher;
import com.networknt.schema.uri.URLFactory;
The replacement is SchemaLoader
.
You will need to configure it on the JsonSchemaFactory
.
This is how a typical implementation looks like
from json-schema-validator.
We observed the same warnings
from json-schema-validator.
@justin-tay look at this, I got during migration with 1.3.0
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] [options] system modules path not set in conjunction with -source 15
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[82,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[83,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[84,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[117,24] error: cannot find symbol
symbol: class URIFactory
location: class SchemaServiceImpl
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Horreum 0.12-SNAPSHOT:
[INFO]
[INFO] Horreum ............................................ SUCCESS [ 1.105 s]
[INFO] horreum-api ........................................ SUCCESS [ 17.519 s]
[INFO] Horreum Client ..................................... SUCCESS [ 1.384 s]
[INFO] Horreum infra - common ............................. SUCCESS [ 0.575 s]
[INFO] Horreum Dev Services - Parent ...................... SUCCESS [ 0.039 s]
[INFO] Horreum Dev Services - Runtime ..................... SUCCESS [ 3.374 s]
[INFO] Horreum Dev Services - Deployment .................. SUCCESS [ 4.853 s]
[INFO] Horreum Backend .................................... FAILURE [ 8.196 s]
[INFO] Horreum Integration Tests .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.943 s
[INFO] Finished at: 2024-01-30T07:36:10+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.1:compile (default-compile) on project horreum-backend: Compilation failure: Compilation failure:
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[82,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[83,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[84,31] error: package com.networknt.schema.uri does not exist
[ERROR] C:\Users\shivam sharma\Desktop\My Project\open-source\Horreum\horreum-backend\src\main\java\io\hyperfoil\tools\horreum\svc\SchemaServiceImpl.java:[117,24] error: cannot find symbol
[ERROR] symbol: class URIFactory
[ERROR] location: class SchemaServiceImpl
[ERROR] -> [Help 1]
from json-schema-validator.
@shivam-sharma7 that is not related to this issue. 1.3.0 contains breaking changes. You can look at the Upgrading to new versions document for details.
from json-schema-validator.
@justin-tay Thanks, can you look at the imports these are causing above errors. I don't know why?
import com.networknt.schema.JsonSchemaFactory;
import com.networknt.schema.uri.URIFactory;
import com.networknt.schema.uri.URIFetcher;
import com.networknt.schema.uri.URLFactory;
from json-schema-validator.
Related Issues (20)
- Since 1.3.0: $id seems to accept anything HOT 5
- Since 1.3.0: UUID not correctly validated HOT 4
- Since 1.3.0: date not correctly validated HOT 1
- Since 1.3.0: Validation fails on keyword 'uuid' HOT 1
- Since 1.3.0 - `JsonSchema.getCurrentUri()` missing
- Since 1.3.1: unevaluatedProperties doesn't work with external schemas HOT 3
- Since 1.3.0: URIFactory is gone. Any migration guide? HOT 1
- SchemaValidatorConfig.setLocale(ENGLISH) does not work when running from non-english environments
- Error when resolving "$ref" with "dot slash" paths
- Custom Formats are not allowed for types other than Strings HOT 2
- FailFast Property Does Not Throw JsonSchemaException for Validation Errors in v1.3.1 HOT 3
- Too many errors reported when the "unevaluatedProperties" property is used
- Updating the version for com.networknt json-schema-validator from 1.0.74 to 1.3.2 runs into error for : Reference /definitions/testDocument cannot be resolved HOT 5
- Required validation does not seem to be getting triggered HOT 3
- Unevaluated properties and subschemas HOT 1
- Custom Validator for absent values HOT 4
- ethlo as an optional dependency?
- Handle Jackson Databind's 'MissingNode' null object better HOT 2
- Are there plans to support custom vocabularies? 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 json-schema-validator.