Comments (3)
This worked: "schema": { "enum": ["Never", "Weekly"] }
Documentation error at: https://jsonforms.io/docs/uischema/rules, it says "schema": { enum: ["foo"] }
from jsonforms-react-seed.
Is there any other use case of schema in condition ?
How can I use condition against array type ?
from jsonforms-react-seed.
The idea of schema based conditions is that you can provide a schema which the data referenced via the scope
property will be validated against, i.e. if validation succeeds, the effect
will be triggered. So if you want to formulate a condition which checks against a array, all you need to do is to specify the respective schema, e.g. if you want an effect to be triggered whenever an array has at least three items, the condition would look like (#/properties/foo
is of type array
in this example)
condition: {
scope: '#/properties/foo',
schema: {
minItems: 3
}
}
I hope this answers your question, if not, please re-open.
from jsonforms-react-seed.
Related Issues (20)
- Custom renderer issue HOT 1
- Issue build error HOT 1
- array no default rendering HOT 1
- fail to run demo, error message: Fail to compile, Module parse failed: Unexpected token HOT 3
- How to get the Field name from jsonschema HOT 1
- upgrade to Material UI v5 HOT 1
- Number validation not working
- Libraries and some examples are obsolete HOT 1
- Clone not working HOT 1
- Which Json schema version does this JsonForms app support ? HOT 1
- getting started instructions fail to start app HOT 2
- Update Cypress Tests
- Update Readme with information about JSON Forms standalone component HOT 1
- Support yaml schemas HOT 1
- Update to JSON Forms 2.4.0
- Horizontal scrollbar should not appear HOT 2
- Type null or string for date value HOT 2
- Website down HOT 2
- RangeError: Maximum call stack size exceeded HOT 2
- Update theme so forms don't require more space when errors occur
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 jsonforms-react-seed.