You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When writing a validation schema for a Keycloak config file, I was confused as a rule that check the correctness of my item stop throw error after I added a new item that break another constraint.
Describe the solution you'd like
I would like the correctness error to be thrown ASAP, and not have to wait for the whole document to be well-formed.
The YAML document is big, so I progress node by node.
Describe alternatives you've considered
fixing issues unrelated to the topic I'm working on to have feedback on my primary goal is a pain and create lots of context switching.
Additional context
Only view constraint error
One of the role is malformed, we got the related error, that's fine. But the error related to the description field is not visible (field is mandatory).
#Role: {
description: stringrealm_name: stringname?: string
}
#Roles: {
[=~#"^ROLE_\w+"#]: #Role
}
roles: #Roles& {
ROLE_WORKBENCH_USER: {
realm_name: "Marketplace"
}
ROLE_WORKER: {
description: "Role to access on all workers of MM."realm_name: "Marketplace"
}
"/payment/refund/reader": {
description: "Grants read only access to refund domain."realm_name: "Marketplace"
}
}
Malformed role Error
roles: field not allowed: "/payment/refund/reader":
-:7:9
-:12:8
-:20:9
myitcv
changed the title
Throw all types of error at the same time (correctness and constrains)
Report all types of error at the same time (constraints and concreteness)
Oct 12, 2022
For others following along, this discussion started on Slack.
My understanding is that even under changes proposed in the required fields proposal v2, a concreteness check would only happen after validation of constraints. Today this necessarily requires that a CUE configuration be valid with respect to constraints before concreteness is checked. However, it struct me that this need not necessarily be the case.
So @edouard-lopez kindly raised this issue as an exploration of whether both could be reported at the same time.
Is your feature request related to a problem? Please describe.
When writing a validation schema for a Keycloak config file, I was confused as a rule that check the correctness of my item stop throw error after I added a new item that break another constraint.
Describe the solution you'd like
I would like the correctness error to be thrown ASAP, and not have to wait for the whole document to be well-formed.
The YAML document is big, so I progress node by node.
Describe alternatives you've considered
fixing issues unrelated to the topic I'm working on to have feedback on my primary goal is a pain and create lots of context switching.
Additional context
Only view constraint error
One of the
role
is malformed, we got the related error, that's fine. But the error related to thedescription
field is not visible (field is mandatory).Malformed
role
ErrorMissing field error
Only when the malformed role
"/payment/refund/reader"
is removed do we see the error about the missingdescription
field.The text was updated successfully, but these errors were encountered: