Skip to content

Golang library for diffing your Go struct annotations with JSON schemas

License

Notifications You must be signed in to change notification settings

nathanwiegand/schemadiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SchemaDiff: API verification from JSON to Go

It's not uncommon to get a JSON value that you might not have a fully specified schema for. SchemaDiff is used to verify if your Go structs have complete and correct field descriptions for a given JSON value.

Our operating example will be a Reddit response.

curl http://reddit.com/r/Longreads/.json > longreads.json
import (
    "fmt"

    "github.com/nathanwiegand/schemadiff"
)

type Reddit struct {

}

func main() {

}

We start with an empty struct. Running the program we see:

// TODO:

About

Golang library for diffing your Go struct annotations with JSON schemas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages