| @@ -1,5 +1,5 @@ |
| { |
| - "$schema": "https://json-schema.org/draft/2020-12/schema", |
| + "$schema": "http://json-schema.org/draft-07/schema#", |
| "title": "AbbayeConfig", |
| "description": "A full configuration for the Abbaye site generator.\n\nHere's a sample configuration that works well as a starting point for rust projects:\n\n```toml\n[site]\nname = \"Abbaye\"\n\n[version_extractor]\ntype = \"cargo\" # extract version from Cargo.toml\n\n[changelog]\n# let's use the default changelog extractor\n\n[[builders]]\ntype = \"cargo\" # calls `cargo build --release` for each target\ntargets = [\"x86_64-unknown-linux-gnu\", \"x86_64-unknown-linux-musl\"]\n[[builders]]\ntype = \"cargo_doc\" # generates documentation using `cargo doc`\nno_deps = true\n\n[[builders]]\ntype = \"archive\" # creates a compressed tarball of the source code\n```\n\nYou can learn more about each builder type in the [builders module documentation](crate::builders).", |
| "type": "object", |
| @@ -8,12 +8,16 @@ |
| "description": "Builders to run during the build process.", |
| "type": "array", |
| "items": { |
| - "$ref": "#/$defs/AnyBuilder" |
| + "$ref": "#/definitions/AnyBuilder" |
| } |
| }, |
| "changelog": { |
| "description": "Configuration for the changelog extractor.", |
| - "$ref": "#/$defs/ChangelogConfig" |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/ChangelogConfig" |
| + } |
| + ] |
| }, |
| "output_dir": { |
| "description": "Where to output generated files. Defaults to `public`.", |
| @@ -25,11 +29,19 @@ |
| }, |
| "site": { |
| "description": "Metadata about the site.", |
| - "$ref": "#/$defs/SiteConfig" |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/SiteConfig" |
| + } |
| + ] |
| }, |
| "version_extractor": { |
| "description": "which version extractor to use to extract the version(s) of the project", |
| - "$ref": "#/$defs/AnyVersionExtractor" |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/AnyVersionExtractor" |
| + } |
| + ] |
| } |
| }, |
| "required": [ |
| @@ -38,7 +50,7 @@ |
| "changelog", |
| "builders" |
| ], |
| - "$defs": { |
| + "definitions": { |
| "AnyBuilder": { |
| "oneOf": [ |
| { |
| @@ -50,7 +62,11 @@ |
| "const": "archive" |
| } |
| }, |
| - "$ref": "#/$defs/ArchiveBuilderConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/ArchiveBuilderConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -64,7 +80,11 @@ |
| "const": "cargo" |
| } |
| }, |
| - "$ref": "#/$defs/CargoBuilderConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/CargoBuilderConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -78,7 +98,11 @@ |
| "const": "cargo_doc" |
| } |
| }, |
| - "$ref": "#/$defs/CargoDocBuilderConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/CargoDocBuilderConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -92,7 +116,11 @@ |
| "const": "script" |
| } |
| }, |
| - "$ref": "#/$defs/ScriptBuilderConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/ScriptBuilderConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -110,7 +138,11 @@ |
| "const": "cargo" |
| } |
| }, |
| - "$ref": "#/$defs/CargoVersionConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/CargoVersionConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -124,7 +156,11 @@ |
| "const": "git" |
| } |
| }, |
| - "$ref": "#/$defs/GitVersionConfig", |
| + "allOf": [ |
| + { |
| + "$ref": "#/definitions/GitVersionConfig" |
| + } |
| + ], |
| "required": [ |
| "type" |
| ] |
| @@ -309,7 +345,7 @@ |
| "description": "Paths of the files or directories produced by the script that should be\ntreated as release artifacts (copied to `dist/` and listed on the\nrelease page). Each path is resolved relative to the working directory\nin which `abbaye` is run.\n\nIf a listed path is missing, the build fails.", |
| "type": "array", |
| "items": { |
| - "$ref": "#/$defs/ScriptBuilderOutput" |
| + "$ref": "#/definitions/ScriptBuilderOutput" |
| } |
| }, |
| "script": { |
| @@ -381,7 +417,7 @@ |
| "description": "OpenGraph configuration for the website.", |
| "anyOf": [ |
| { |
| - "$ref": "#/$defs/OpenGraphConfig" |
| + "$ref": "#/definitions/OpenGraphConfig" |
| }, |
| { |
| "type": "null" |