[xaprepare] CGManifest.json conforms to JSON schema #7342
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://www.jsonschemavalidator.net/
Context: https://github.com/JamieMagee/verify-cgmanifest
Context: https://json.schemastore.org/component-detection-manifest.json
Context: xamarin/AndroidX#608
There is a JSON Schema for
CGManifest.json
.Update
xaprepare
so thatCGManifest.json
conforms to the JSONschema. This involves three sets of changes:
Add a
$schema
property.Add a
version
property; I can't find any actual documentationfor this schema, but the sample manifest uses
"version": 1
,so use the same version.
"camelCase" all the JSON property names. From the
JamieMagee/verify-cgmanifest README.md:
With these changes, our generated
bin/Build$(Configuration)/CGManifest.json
reports no errors whenusing https://www.jsonschemavalidator.net.