doc/_stdlib_gen/stdlib-content-test.jsonnet
raw| 1 | local stdlib_content = import 'stdlib-content.jsonnet'; |
| 2 | |
| 3 | std.all([ |
| 4 | if !std.objectHas(field, 'availableSince') then |
| 5 | error 'No availableSince field for std.%s' % field.name |
| 6 | else if field.availableSince[0] == 'v' then |
| 7 | error 'availableSince field for std.%s should not begin with a "v" (got %s)' |
| 8 | % [field.name, field.availableSince] |
| 9 | else |
| 10 | true |
| 11 | for group in stdlib_content.groups |
| 12 | for field in group.fields |
| 13 | ]) |