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
I tried to use key=include() in map() to add meaningful names to the schema, but it looks that the include() is not evaluated and it validates all keys.
test.yml
data:
a: 1
b: 2
c: 3
schema.yml
# not correct, all keys are valid
data: map( int(), key=include('letter_a') )
# correct, only 'a' is valid
# data: map( int(), key=str( matches='^[a]$' ) )
---
letter_a: str( matches='^[a]$' )
The text was updated successfully, but these errors were encountered:
I tried to use key=include() in map() to add meaningful names to the schema, but it looks that the include() is not evaluated and it validates all keys.
test.yml
schema.yml
The text was updated successfully, but these errors were encountered: