Skip to content

Rohit-0505/jsonsvalidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

JSON Schema Validation

Follow below steps to validate the json document

clone the code

  • Copy the code into $GOPATH/src
  • modify the host_document.json as per your host info
  • update the validateJson.go file with the file path for host_schema.json and host_document.json

Note: (the prefix (file://) and a full path to the file are required)

  • Install the dependency package
go get "github.com/xeipuuv/gojsonschema"
  • run below command
go test

About

JSON Schema validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages