Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update schema #1449

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Jan 12, 2023

The GolangBinMetadata was renamed to GolangMetadata, this PR updates the schama with this change.

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@wagoodman
Copy link
Contributor

Diff of schema changes for reviewers:

# $ diff schema/json/schema-6.0.0.json schema/json/schema-6.1.0.json
233,256d232
<     "Classification": {
<       "properties": {
<         "class": {
<           "type": "string"
<         },
<         "virtual_path": {
<           "type": "string"
<         },
<         "metadata": {
<           "patternProperties": {
<             ".*": {
<               "type": "string"
<             }
<           },
<           "type": "object"
<         }
<       },
<       "type": "object",
<       "required": [
<         "class",
<         "virtual_path",
<         "metadata"
<       ]
<     },
540,545d515
<         },
<         "classifications": {
<           "items": {
<             "$ref": "#/$defs/Classification"
<           },
<           "type": "array"
620c590
<     "GolangBinMetadata": {
---
>     "GolangMetadata": {
927c897
<               "$ref": "#/$defs/GolangBinMetadata"
---
>               "$ref": "#/$defs/GolangMetadata"

Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good, though this is pulling along a few other changes from previous PRs too. Nothing wrong with that relative to this PR, but indicates we should probably do a make generate-json-schema in the CI pipeline and ensure nothing changes (or fail validations).

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow merged commit 85bddaa into anchore:main Jan 12, 2023
@kzantow kzantow deleted the chore/update-syft-schema branch January 12, 2023 19:25
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants