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

Add validation of required parameters #227

Merged
merged 2 commits into from
Oct 17, 2021
Merged

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Oct 15, 2021

Add the following JSON Schema rules:

  • Required fields of any of the destinations must be filled
  • All destinations (splunkPlatform and splunkObservability) must have at least one of the telemetry types enabled

TODO in the following PR: rely only on splunkPlatform.endpoint and splunkObservability.realm to determine which destination is enabled, and require splunkPlatform.token and splunkObservability.accessToken for any enabled destination.

@dmitryax dmitryax requested review from a team as code owners October 15, 2021 06:47
@dmitryax dmitryax closed this Oct 17, 2021
@dmitryax dmitryax deleted the validate-required-attributes branch October 17, 2021 04:47
@dmitryax dmitryax restored the validate-required-attributes branch October 17, 2021 04:48
@dmitryax dmitryax reopened this Oct 17, 2021
Add the following JSON Schema rules:
- Required fields of any of the destinations must be filled
- A destination (`splunkPlatform` or `splunkObservability`) must have at least one of the telemetry types enabled
@dmitryax dmitryax force-pushed the validate-required-attributes branch 2 times, most recently from 2dd250a to 84bfcc4 Compare October 17, 2021 20:44
@dmitryax dmitryax merged commit cd24bca into main Oct 17, 2021
@dmitryax dmitryax deleted the validate-required-attributes branch October 17, 2021 23:25
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.

None yet

2 participants