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

Validate that mappings are a JSON object, not just valid json #719

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

tobio
Copy link
Member

@tobio tobio commented Aug 20, 2024

Fixes #700

Validates that these attributes are specifically objects, hopefully pointing users to the correct place to look.

@tobio tobio self-assigned this Aug 20, 2024
@tobio tobio requested review from a team August 20, 2024 10:44
Copy link
Contributor

@biscout42 biscout42 left a comment

Choose a reason for hiding this comment

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

Left a suggestion to make null explicitly valid json object.

biscout42
biscout42 previously approved these changes Aug 20, 2024
dimuon
dimuon previously approved these changes Aug 20, 2024
@tobio tobio enabled auto-merge (squash) August 20, 2024 22:12
@tobio tobio requested review from dimuon and biscout42 August 21, 2024 09:13
@tobio tobio merged commit 890e65d into main Aug 21, 2024
41 checks passed
@tobio tobio deleted the better-mapping-validation branch August 21, 2024 09:15
tobio added a commit that referenced this pull request Aug 26, 2024
* origin/main:
  Add support for the `alert_delay` param in the Create Rule API (#715)
  chore: prepare release v0.11.6 (#716)
  Validate that mappings are a JSON object, not just valid json (#719)
  fix: move all resources in one namespace for tcp monitor acc tests (#717)
  Bump github.com/golangci/golangci-lint from 1.59.1 to 1.60.1 in /tools (#714)
  Bump github.com/docker/docker in /tools (#718)
  Bump github.com/goreleaser/goreleaser from 1.26.1 to 1.26.2 in /tools (#642)
  Bump github.com/hashicorp/terraform-plugin-framework (#705)
  Add kibana synthetics http and tcp monitor resources (#699)
  Kibana spaces data source (#682)
  Use ephemeral github token for build. (#712)
  chore: 8.15.0 is here - lets try it out (#708)
  Update changelog for 0.11.5
  Bump version for 0.11.5 (#706)
  Bugfix SLO API: Update type for `group_by` to accept either string or array-of-strings (#701)
  Support `restriction` in `elasticstack_elasticsearch_security_api_key` (#577)
  chore: follow-up CR changes for synthetics private location resource (#697)
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.

[Bug] Error: json: cannot unmarshal array into Go value of type map[string]interface {}
3 participants