with hooks

This commit is contained in:
Ryan McKinley
2025-07-03 17:44:44 -07:00
parent f842bb7af7
commit 732d4351de
6 changed files with 333 additions and 238 deletions
@@ -0,0 +1,24 @@
package testdatasource
import (
"encoding/json"
"fmt"
"testing"
"github.com/stretchr/testify/require"
// "sigs.k8s.io/yaml" // uses the same structure as json!
)
func TestSpec(t *testing.T) {
info, err := OpenAPIExtension()
require.NoError(t, err)
require.NotNil(t, info)
jj, err := json.MarshalIndent(info, "", " ")
require.NoError(t, err)
fmt.Printf("%s\n", string(jj))
// jj, err = yaml.Marshal(info)
// require.NoError(t, err)
// fmt.Printf("%s\n", string(jj))
}