You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ code: 'RESPONSE_VALIDATION_ERROR',
id: 'OAV108',
message: 'Found errors in validating the response with statusCode "200" for x-ms-example "GetManagementGroup" in operation "ManagementGroups_Get".',
innerErrors:
[ { code: 'INVALID_RESPONSE_BODY',
errors:
[ { code: 'ONE_OF_MISSING',
params: [],
message: 'Data does not match any schemas from \'oneOf\'',
path: [ 'properties' ],
inner:
[ { code: 'ONE_OF_MISSING',
params: [],
message: 'Data does not match any schemas from \'oneOf\'',
path: [ 'properties', 'details' ],
inner:
[ { code: 'ONE_OF_MULTIPLE',
params: [],
message: 'Data is valid against more than one schema from \'oneOf\'',
path: [ 'details', 'parent' ] },
{ code: 'INVALID_TYPE',
params: [ 'null', 'object' ],
message: 'Expected type null but found type object',
path: [ 'details' ] } ] },
{ code: 'INVALID_TYPE',
params: [ 'null', 'object' ],
message: 'Expected type null but found type object',
path: [ 'properties' ] } ] } ],
message: 'Invalid body: Data does not match any schemas from \'oneOf\'',
path: [] } ] }
I was looking at this issue last night. This is a slightly complex problem to solve. Have sort of figured out the problematic part which has raised doubts in my mind about "oneOf". I need to improve my understanding of "oneOf" in json schema. Will have to talk to folks in the team and then come to a conclusion.
I would say please do not block on merging the PRs in the azure-rest-api-specs repo. We should definitely fix this issue in the upcoming sprint with more tests that have complicated scenarios.
/cc @salameer
Regarding PR Azure/azure-rest-api-specs#2094.
Here's the response.
Note the
null
parent field. How should this be modeled?Seems related to #155
The text was updated successfully, but these errors were encountered: