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

internal/config: use JSON Schema #678

Merged
merged 5 commits into from
Oct 4, 2024
Merged

Conversation

adambabik
Copy link
Collaborator

This change switches the runme.yaml schema definition from protobuf to JSON Schema. This results in fewer conversions and more natural representation. It also adds support for parsing and merging multiple configuration files. Default config was moved to a file.

Go's struct representing the config is generated from the schema. When you change internal/config/config.schema.json, remember to call make schema/generate.

Additionally, support parsing and merging multiple configuration
files.
@adambabik adambabik marked this pull request as ready for review October 1, 2024 21:18
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Copy link

sonarcloud bot commented Oct 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
5 Security Hotspots

See analysis details on SonarCloud

@sourishkrout sourishkrout merged commit 2379518 into main Oct 4, 2024
6 of 7 checks passed
@sourishkrout sourishkrout deleted the adamb/config-json-schema branch October 4, 2024 17:10
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