The BIDS metaschema uses nested hierarchy in the definitions/$defs section. For example, under enums , we have formats and requirement_level.
However, I believe this is illegal for JSON schema.
In the JSON schema specification 8.2.4, it requires
Each member value of this object MUST be a valid JSON Schema.
As such, I believe enums and ruleTypes in the metaschema should be flattened.
Additionally, since JSON schema 2019-09 the keyword $defs should be preferred over definitions.