mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
Changed document signatures to use error instead of []error
Also removed old swagger `CreateDocument` method that has been deprecated. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -50,7 +50,7 @@ definitions:
|
||||
assert.NoError(t, err)
|
||||
|
||||
v2Doc, docErr := doc.BuildV2Model()
|
||||
assert.Len(t, docErr, 2)
|
||||
assert.Len(t, docErr, 3)
|
||||
assert.Nil(t, v2Doc)
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ func TestDocument_BuildModel_CompareDocsV2_Error(t *testing.T) {
|
||||
originalDoc, _ := NewDocument(burgerShopOriginal)
|
||||
updatedDoc, _ := NewDocument(burgerShopUpdated)
|
||||
changes, errors := CompareDocuments(updatedDoc, originalDoc)
|
||||
assert.Len(t, errors, 2)
|
||||
assert.Len(t, errors, 14)
|
||||
assert.Nil(t, changes)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user