Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid $ref in aggregated JSON schemas should be removed #103

Closed
fstaudt opened this issue Jul 6, 2023 · 0 comments
Closed

Invalid $ref in aggregated JSON schemas should be removed #103

fstaudt opened this issue Jul 6, 2023 · 0 comments
Milestone

Comments

@fstaudt
Copy link
Owner

fstaudt commented Jul 6, 2023

Invalid or unknown $ref in aggregated JSON schemas cause failure in Gradle task validateHelmValues:

java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source)
        ...
Caused by: com.networknt.schema.JsonSchemaException: ... is an invalid segment for URI {2}
	at com.networknt.schema.JsonSchema.combineCurrentUriWithIds(JsonSchema.java:111)
        ...

java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source)
        ...
Caused by: com.networknt.schema.JsonSchemaException: #/properties/global/allOf/0/$ref: Reference #/$defs/downloads/repository/json-schemas/apps/test/1.0.0/values.schema.json/properties/global cannot be resolved
	at com.networknt.schema.RefValidator.<init>(RefValidator.java:45)
        ... 138 more
	
java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source)
        ...
Caused by: com.networknt.schema.JsonSchemaException: #/properties/global/allOf/1/$ref: Reference #/$defs/downloads/repository/json-schemas/apps/test/1.0.0/global-values.schema.json cannot be resolved
	at com.networknt.schema.RefValidator.<init>(RefValidator.java:45)
        ... 138 more

Since those schemas are already ignored by IntelliJ IDEA, they should be removed from aggregated JSON schema.

@fstaudt fstaudt added this to the 0.7.1 milestone Jul 9, 2023
@fstaudt fstaudt closed this as completed in 51ca189 Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant