We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a document structure validation, in the CI. It's possible to add it as a go test using the official golang marshaller: https://github.com/open-rpc/meta-schema/blob/master/openrpc_document.go
However, the file doesn't compile because it's missing the definition of Undefined.
Undefined
In the meantime, we already have tests that (should) ensure the documentation is in sync with the code.
package api_test import ( vgfs "code.vegaprotocol.io/vega/libs/fs" "github.com/open-rpc/meta-schema" "github.com/stretchr/testify/require" "encoding/json" "testing" ) func TestOpenRPCDocumentIsValid(t *testing.T) { rawFileContent, err := vgfs.ReadFile("./openrpc.json") require.NoError(t, err) document := &openrpc_document.OpenrpcDocument{} err = json.Unmarshal(rawFileContent, document) require.NoError(t, err) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a document structure validation, in the CI. It's possible to add it as a go test using the official golang marshaller:
https://github.com/open-rpc/meta-schema/blob/master/openrpc_document.go
However, the file doesn't compile because it's missing the definition of
Undefined
.In the meantime, we already have tests that (should) ensure the documentation is in sync with the code.
Prototype
The text was updated successfully, but these errors were encountered: