Mehrad :kde: :emacs: :rstats: on Nostr: Jim Crist-Harif I'm trying to use the msgspec python package to validate a TOML file. ...
Jim Crist-Harif (npub17zf…jcqg) I'm trying to use the msgspec python package to validate a TOML file. I was wondering if it is possible to have a schema that can support/validate undefined number of nested "tables". For example something to validate the following that can be
```toml
[servers]
[servers.1st]
ip = "10.0.0.1"
role = "frontend"
[servers.2nd]
ip = "10.0.0.2"
role = "backend"
.
.
.
[servers.Nth]
ip = "10.0.0.255"
role = "foo"
```
```toml
[servers]
[servers.1st]
ip = "10.0.0.1"
role = "frontend"
[servers.2nd]
ip = "10.0.0.2"
role = "backend"
.
.
.
[servers.Nth]
ip = "10.0.0.255"
role = "foo"
```