The "schemas" endpoint should be updated to integrate constraints on fields.
It currently returns :
{ "name" : "mySchema", "@prefix" : "ms", "fields" : { "id" : "string", "email" : "string" }
It should returns:
{ "name" : "mySchema", "@prefix" : "ms", "fields" : { "id" : { "type": "string", "constraints": { "NotNullConstraint": {} } } "email" : { "type": "string", "constraints": { "NotNullConstraint": {}, "PatternConstraint": { "Pattern" : "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?*" } } } }
- is duplicated by
-
NXP-20657 Export Field References on schema endpoint
- Resolved