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

[v2] Report full error for schema violations #4934

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

mikeharder
Copy link
Member

@mikeharder mikeharder commented Mar 29, 2024

Before

ERROR: Schema violation: Data does not match any schemas from 'oneOf'

After

ERROR: Schema violation: Data does not match any schemas from 'oneOf'
{
  code: 'ONE-OF-MISSING',
  message: "Data does not match any schemas from 'oneOf'",
  inner: [
    {
      code: 'OBJECT-MISSING-REQUIRED-PROPERTY',
      message: 'Missing required property: parameters',
      description: 'Describes the format of an example defined using the x-ms-examples extension.'
    },
    {
      code: 'OBJECT-MISSING-REQUIRED-PROPERTY',
      message: 'Missing required property: $ref',
    }
  ]
}

@mikeharder mikeharder self-assigned this Mar 29, 2024
@mikeharder mikeharder marked this pull request as ready for review March 29, 2024 23:14
@mikeharder mikeharder merged commit 3d50bb1 into Azure:v2 Mar 29, 2024
1 check passed
@mikeharder mikeharder deleted the v2-improve-schema-error-message branch March 29, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants