Skip to content

A simple project to demonstrate generating Json Schema from a Pojo.

Notifications You must be signed in to change notification settings

bmchild/JsonSchemaGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of how to create a JSON Schema from a POJO.

This example will generate this schema:

{
  "type" : "object",
  "id" : "urn:jsonschema:com:bmchild:model:SimplePojo",
  "properties" : {
    "children" : {
      "type" : "array",
      "items" : {
        "type" : "object",
        "id" : "urn:jsonschema:com:bmchild:model:SimplePojoChild",
        "properties" : {
          "cName" : {
            "type" : "string"
          },
          "id" : {
            "type" : "integer"
          },
          "cDescription" : {
            "type" : "string"
          }
        }
      }
    },
    "name" : {
      "type" : "string"
    },
    "description" : {
      "type" : "string"
    },
    "id" : {
      "type" : "integer"
    }
  }
}

About

A simple project to demonstrate generating Json Schema from a Pojo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages