mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
All tests pass! logs of tests fixed and tuning API for high level
Document configuration has been simplified, no more need for AllowRemote stuff in the document configuration, it’s assumed by setting the baseURL or the basePath. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -9,13 +9,6 @@ import (
|
||||
)
|
||||
|
||||
func TestNewClosedDocumentConfiguration(t *testing.T) {
|
||||
cfg := NewClosedDocumentConfiguration()
|
||||
assert.False(t, cfg.AllowRemoteReferences)
|
||||
assert.False(t, cfg.AllowFileReferences)
|
||||
}
|
||||
|
||||
func TestNewOpenDocumentConfiguration(t *testing.T) {
|
||||
cfg := NewOpenDocumentConfiguration()
|
||||
assert.True(t, cfg.AllowRemoteReferences)
|
||||
assert.True(t, cfg.AllowFileReferences)
|
||||
cfg := NewDocumentConfiguration()
|
||||
assert.NotNil(t, cfg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user