Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jstaffans/robotframework-jsonschemalibrary
JSON Schema validation library for Robot Framework
https://github.com/jstaffans/robotframework-jsonschemalibrary
Last synced: 26 days ago
JSON representation
JSON Schema validation library for Robot Framework
- Host: GitHub
- URL: https://github.com/jstaffans/robotframework-jsonschemalibrary
- Owner: jstaffans
- License: apache-2.0
- Created: 2016-10-28T15:05:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T07:45:42.000Z (over 5 years ago)
- Last Synced: 2024-08-03T18:10:32.486Z (4 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 9
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-robotframework - JSON Schema Library
README
====================================================
A Robot Framework library for JSON Schema validation
====================================================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
.. _`jsonschema`: https://github.com/Julian/jsonschema