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

Rewrite CodeTF spec using JSON Schema #20

Merged
merged 6 commits into from
Mar 8, 2024
Merged

Rewrite CodeTF spec using JSON Schema #20

merged 6 commits into from
Mar 8, 2024

Conversation

drdavella
Copy link
Member

No description provided.

Copy link
Contributor

@gilday gilday left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. I checked the schema against some CodeTF results I got from the orchestrator and found that it didn't match.

To catch cases where we accidentally make a breaking change to the schema, can we include an example of a valid CodeTF file and include a check in validate that validates the schema against the example?

.github/workflows/validate.yaml Outdated Show resolved Hide resolved
.github/workflows/validate.yaml Show resolved Hide resolved
codetf.schema.json Outdated Show resolved Hide resolved
codetf.schema.json Outdated Show resolved Hide resolved
codetf.schema.json Outdated Show resolved Hide resolved
"type": "string",
"description": "A longer description of the changes made"
},
"detectionTool": {
Copy link
Member Author

Choose a reason for hiding this comment

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

The debate for this field properly belongs in #19. I'm happy to remove it here if we just want to move ahead with this change.

@drdavella drdavella merged commit 0f1aafc into main Mar 8, 2024
2 checks passed
@drdavella drdavella deleted the json-schema branch March 8, 2024 15:15
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.

3 participants