How to change the schema of references property in the JS API? #153
-
I have an object that has a property that is defined inside $defs and linked to using $ref, like so: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I suppose that unless the defs are compiled into individual properties, it is not going to be possible to change an aspect of a single referencing instance, and changing it in the defs is also not an options since that would change other input firlds as well. I guess that i have to make them individual, but perhaps putting shared code in Python dicts that are then referenced to in the main schema. |
Beta Was this translation helpful? Give feedback.
-
Can you give me some code to be able to reproduce it? |
Beta Was this translation helpful? Give feedback.
Overriding specific properties of a referenced definition is supported.
You can paste this schema in the playground and the
last_name
field should be hidden: