mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Swagger 2.0 high level model going in now
Shifting a few high level models around that are also shared. now it's just a churn game to flesh the high level model and test it up.
This commit is contained in:
26
document_test.go
Normal file
26
document_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestLoadDocument_Simple(t *testing.T) {
|
||||
//
|
||||
//yml := `openapi: 3.0.1`
|
||||
//doc, err := LoadDocument([]byte(yml))
|
||||
//assert.NoError(t, err)
|
||||
//assert.Equal(t, "3.0.1", doc.GetVersion())
|
||||
|
||||
}
|
||||
|
||||
func TestLoadDocument_WithInfo(t *testing.T) {
|
||||
|
||||
//yml := `openapi: 3.0.1`
|
||||
//doc, err := LoadDocument([]byte(yml))
|
||||
//assert.NoError(t, err)
|
||||
//assert.Equal(t, "3.0.1", doc.GetVersion())
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user