Closed eamonnfaherty closed 3 years ago
I used a map to resolve this.
@eamonnfaherty could you share how? I'm struggling with the same
Hi @LuisAlejandro, using the yaml mentioned in the original message, the following schema will work:
people: map(include("person"))
---
person:
name: str()
age: int()
Let us know if you have any other questions.
Thanks!
I struggled with the same problem; this might make a good addition to the examples in README.md
.
I have the following data
I have the following schema:
I want to make this more generic so I can add more people without specifying the keys upfront. e.g I want to be able to add
without modifying the schema.
How I do specify that the key names of people match a regex and their values are of type person. I cannot see an example like this.