-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
system({ | ||
title: "JSON schema for file generation", | ||
description: "Apply JSON schemas to generated data", | ||
}) | ||
|
||
const folder = | ||
env.vars["outputFolder"] || "." | ||
|
||
$` | ||
## Files with JSON Schema | ||
When you generate JSON or YAML according to a named schema, | ||
you MUST add the schema identifier in the code fence header. | ||
` | ||
|
||
def( | ||
`File ${folder}/data.json`, | ||
`...`, | ||
{ language: "json", schema: "CITY_SCHEMA" } | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.