Skip to content

vladimirgamalyan/vibe.d.json.schema

Repository files navigation

Build Status

JSON Schema validation for vibe.d JSON

Json scheme = parseJsonString(`{
	"type": "object",
	"properties": {
		"foo": { 
			"type": "integer",
			"minimum": 0
		},
		"bar": { 
			"type": "string",
			"maxLength": 255
		}
	}
}`);

Json json = parseJsonString(`{
	"foo": 42, 
	"bar": "baz"
}`);

bool valid = validateJson(scheme, json);
assert(valid);

Not supported yet

  • definitions
  • $ref

About

JSON Schema validation for vibe.d JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages