Comments (1)
Hello Florin,
AFAIR this is a known issue also highlighted by a failing test from the failing test suite. The problem is that in the "unevaluatedProperties"
implementation only the properties which are one nesting level deeper are marked as evaluated, not by adjacent keywords. By "one nesting level deeper" I mean nested by allOf/anyOf/oneOf/if-then-else.
As a quick workaround I suggest writing your schema as
{
"$schema": "http://json-schema.org/draft/2020-12/schema#",
"allOf": [
{
"type": "object",
"properties": { "key2": { "type": "string" } }
}
]
"unevaluatedProperties": false
}
Hope it helps.
from json-skema.
Related Issues (20)
- Add Bowtie runner HOT 1
- Fix string escaping in JsonPrintingVisitor
- Support classpath:// protocol by default
- SubSchema internal references are not resolved HOT 10
- Don't use java.net.URLDecoder.decode(String, Charset) to lower minimum Android API level from 33 HOT 1
- Format "date-time" requiring
- Override "message" as well as "toString" in JsonTypeException HOT 2
- Extending schemas?
- Throw SchemaException when loading fails HOT 1
- Validation returns "An operation is not implemented: something went wrong" for complex schema HOT 3
- supports tuple validation mode for items in array object HOT 2
- Performance and functional comparison HOT 13
- Missing readOnly/writeOnly context? HOT 2
- Set up Dependabot to keep dependencies up to date. HOT 5
- How to resolve schemas with URI HOT 2
- Java 17 support HOT 1
- Error in README due to new version HOT 2
- kotlin.NotImplementedError HOT 4
- In UnevaluatedPropertiesValidationFailure, Keyword.UNEVALUATED_ITEMS should be Keyword.UNEVALUATED_PROPERTIES 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-skema.