Skip to main content

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 | RSS feed

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.

Source Distribution

robotframework-jsonschemalibrary-1.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file robotframework-jsonschemalibrary-1.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-jsonschemalibrary-1.0.tar.gz
Algorithm Hash digest
SHA256 e52a00c8d8155b9c99d130da8360a7a692b19d292af1c58f0bf433df81df833b
MD5 fddfc3b968ae33035a658d7edaebe1cf
BLAKE2b-256 e60d5d4162af1b87260f633cbd402cbe4bd263efa057bb9799c97e8e5676b241

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page