Commit fcc33ce
authored
Context: https://www.jsonschemavalidator.net/
Context: https://github.com/JamieMagee/verify-cgmanifest
Context: https://json.schemastore.org/component-detection-manifest.json
Context: dotnet/android-libraries#608
There is a [JSON Schema][0] for `CGManifest.json`.
Update `tools/java-source-utils/CGManifest.json` so that it conforms
to the JSON schema. This involves three sets of changes:
* Add a `$schema` property.
* Add a `version` property; I can't find any actual documentation
for this schema, but the [sample manifest][1] uses `"version": 1`,
so use the same version.
* "camelCase" all the JSON property names. From the
[JamieMagee/verify-cgmanifest README.md][2]:
> Component Detection will accept object properties in PascalCase,
> but JSON schema does not have a case-insensitive mode.
> Camel case is the most common way to write object properties in
> JSON.
With these changes, `CGManifest.json` reports no errors when using
<https://www.jsonschemavalidator.net>.
Co-authored-by: Jamie Magee <[email protected]>
[0]: https://json.schemastore.org/component-detection-manifest.json
[1]: https://github.com/JamieMagee/verify-cgmanifest/blob/2adfb450cd1f2170c3df120036f4a531285167ef/cgmanifest.sample.json
[2]: https://github.com/JamieMagee/verify-cgmanifest/blob/2adfb450cd1f2170c3df120036f4a531285167ef/README.md
1 parent 58de60f commit fcc33ce
1 file changed
+18
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
0 commit comments