Skip to content

Commit ddfcca0

Browse files
authored
Merge pull request cds-hooks#599 from dmikusa/project-toml
Add missing `schema-version` properties
2 parents 0253e55 + 4be5ebb commit ddfcca0

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

content/docs/app-developer-guide/specify-buildpacks.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ summary="Learn how to specify exactly what buildpacks are used during the build
99

1010
You may specify exactly what buildpacks are used during the build process by referencing them with a URI in any of the following formats.
1111

12-
| Type | Format |
13-
|----- |------- |
14-
| Relative | `<path>` |
15-
| Filesystem | `file://[<host>]/<path>` |
16-
| URL | `http[s]://<host>/<path>` |
17-
| Docker | `docker://[<host>]/<path>[:<tag>⏐@<digest>]` |
18-
| CNB Builder Resource | `urn:cnb:builder[:<id>[@<version>]]` |
19-
| CNB Registry Resource | `urn:cnb:registry[:<id>[@<version>]]` |
12+
| Type | Format |
13+
| --------------------- | -------------------------------------------- |
14+
| Relative | `<path>` |
15+
| Filesystem | `file://[<host>]/<path>` |
16+
| URL | `http[s]://<host>/<path>` |
17+
| Docker | `docker://[<host>]/<path>[:<tag>⏐@<digest>]` |
18+
| CNB Builder Resource | `urn:cnb:builder[:<id>[@<version>]]` |
19+
| CNB Registry Resource | `urn:cnb:registry[:<id>[@<version>]]` |
2020

2121
##### Fallback Behavior
2222

@@ -60,7 +60,7 @@ The [`project.toml`][project-toml] format allows for Buildpack URIs to be specif
6060

6161
```toml
6262
[_]
63-
schema-version = "0.3"
63+
schema-version = "0.2"
6464
id = "sample-java-maven-app"
6565
name = "Sample Java App"
6666
version = "1.0.0"

content/docs/app-developer-guide/using-project-descriptor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ file at the root of the application. For more on `gitignore` matching see [these
2020

2121
```toml
2222
[_]
23+
schema-version = "0.2"
2324
id = "io.buildpacks.bash-script"
2425
name = "Bash Script"
2526
version = "1.0.0"
@@ -68,6 +69,7 @@ Below is an expanded `project.toml`, with an additional buildpack and environmen
6869

6970
```toml
7071
[_]
72+
schema-version = "0.2"
7173
id = "io.buildpacks.bash-script"
7274
name = "Bash Script"
7375
version = "1.0.0"

content/docs/reference/config/project-descriptor.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The schema for the `project descriptor` is:
1515
- #### `_` _(table, optional)_
1616
A configuration table for a project.
1717

18+
- **`schema-version`** _(string, optional)_\
19+
A version identifier for the schema of the `_` table and structure of the project descriptor file. It is a string that follows the format of the [Buildpack API Version](https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpack-api-version). The schema is documented [in the project descriptor specification](https://github.com/buildpacks/spec/blob/main/extensions/project-descriptor.md#schema-version) and is presently `0.2`.
20+
1821
- **`id`** _(string, optional)_\
1922
A machine readable identifier for the `project`. For example, `com.example.myservice`.
2023

0 commit comments

Comments
 (0)