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
The Spec object does not unmarshal YAML natively, only JSON.
In order to load a YAML document into a swagger spec, you need to use the loaders provided by github.com/go-openapi/loads
These discussion threads are valuable, but no longer active.
* fixesgo-openapi#164
* fixesgo-openapi#23
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
This code won't work because type SchemaProps struct does not have yaml declarations, why?
I'm working with example https://pkg.go.dev/github.com/go-openapi/validate#example-AgainstSchema
And cannot load yaml file.
The text was updated successfully, but these errors were encountered: