Hey all! I'm trying to customize an identity schem...
# ory-network
p
Hey all! I'm trying to customize an identity schema to make checking a ToS box mandatory. Right now it's shown but optional - how can I force it's selection?
b
Add it to the
required: []
array in the schema.
p
THanks! I just asked my friend ChatGPT (urgh) and it also mentioned a
const: true
option that I've never seen in the documentation. Fever dream?
b
the identity schema is just a json Schema, so that could work as well. And I think
required
actually just makes it necessary to submit a value, not that it must true. So
const: true
could work as well. Not sure, though!
p
Alright, this is what we have test instances for :()