Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A Robot Framework library for JSON Schema validation.

Project description

Provides a simple interface to jsonschema, the Python implementation of JSON Schema.

Usage

The library needs access to the file system location of the schemas, in order to resolve references between schemas. Default is a subdirectory called schemas - you could make a symlink here to wherever the schema definition files are:

Library  JSONSchemaLibrary  /path/to/schemas
...
My Test Case:
  Validate Json  schema_name.schema.json  {"foo": "bar"}

Per default, only prints the validation error message when there’s an error. Run with log level DEBUG in order to see more info, including a dump of the schema, in the Robot Framework logs.

Development

$ pybot --pythonpath . tests

Todo

  • HTTP resolver

Project details


Release history Release notifications

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for robotframework-jsonschemalibrary, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size robotframework-jsonschemalibrary-1.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page