-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Description
In Draft 4, $id is just id (without the dollar sign) .
But when I give a json file in draft 4 without the dollar sign to build my schema it doesn't work and I have the following error :
urn:OCPP:1.6:2019:12:HeartbeatRequest: null is an invalid segment for URI {2}
com.networknt.schema.JsonSchemaException: urn:OCPP:1.6:2019:12:HeartbeatRequest: null is an invalid segment for URI {2}
at app//com.networknt.schema.JsonSchema.combineCurrentUriWithIds(JsonSchema.java:111)
at app//com.networknt.schema.JsonSchema.<init>(JsonSchema.java:86)
at app//com.networknt.schema.JsonSchema.<init>(JsonSchema.java:72)
at app//com.networknt.schema.JsonSchema.<init>(JsonSchema.java:67)
at app//com.networknt.schema.JsonSchemaFactory.newJsonSchema(JsonSchemaFactory.java:274)
at app//com.networknt.schema.JsonSchemaFactory.getSchema(JsonSchemaFactory.java:316)
at app//com.networknt.schema.JsonSchemaFactory.getSchema(JsonSchemaFactory.java:324)
And, when I had the $ it works.
Metadata
Metadata
Assignees
Labels
No labels