Skip to content

Run test to confirm type mismatch errors and opportunities - #1171

Closed
pietern wants to merge 2 commits into
mainfrom
jobs-deserialization-test
Closed

Run test to confirm type mismatch errors and opportunities#1171
pietern wants to merge 2 commits into
mainfrom
jobs-deserialization-test

Conversation

@pietern

Copy link
Copy Markdown
Contributor

Note: this PR only demonstrates the issue and doesn't solve it.

Changes

Confirm poor error message when provided with JSON that doesn't match the expected schema.

The default unmarshaller returns error:

invalid character '\n' in string literal

The dyn normalizer returns:

  • expected sequence, found map testdata/job_cluster_test.json:14:14
  • unknown field: name testdata/job_cluster_test.json:1:1

Tests

@pietern

Copy link
Copy Markdown
ContributorAuthor

This is being implemented in #1771.

@pieternpietern closed this Sep 25, 2024
@pietern
pietern deleted the jobs-deserialization-test branch September 25, 2024 14:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pietern@andrewnester