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
funcTestCompareSchemas_CheckRequiredOrdering(t*testing.T) {
left:=`openapi: 3.1.0components: schemas: Ordering: required: - one - three properties: three: type: string one: type: string`right:=`openapi: 3.1.0components: schemas: Ordering: required: - three - one properties: three: type: string one: type: string`leftDoc, rightDoc:=test_BuildDoc(left, right)
// extract left reference schema and non reference schema.lSchemaProxy:=leftDoc.Components.Value.FindSchema("Ordering").ValuerSchemaProxy:=rightDoc.Components.Value.FindSchema("Ordering").Valuechanges:=CompareSchemas(lSchemaProxy, rSchemaProxy)
assert.Nil(t, changes)
assert.Equal(t, 0, changes.TotalChanges())
}```
Can you provide a snippet where I can re-create this?
required ;
and required :
should not be considered as a difference even not a warning or noticed
The text was updated successfully, but these errors were encountered: