Metadata-Version: 2.1
Name: hypothesis-jsonschema
Version: 0.8.2
Summary: Generate test data from JSON schemata with Hypothesis
Home-page: https://github.com/Zac-HD/hypothesis-jsonschema
Author: Zac Hatfield-Dodds
Author-email: zac@hypothesis.works
License: MPL 2.0
Description: # hypothesis-jsonschema
        
        A [Hypothesis](https://hypothesis.readthedocs.io) strategy for generating data
        that matches some [JSON schema](https://json-schema.org/).
        
        [Here's the PyPI page.](https://pypi.org/project/hypothesis-jsonschema/)
        
        ## API
        
        The public API consists of just one function: `hypothesis_jsonschema.from_schema`,
        which takes a JSON schema and returns a strategy for allowed JSON objects.
        
        Schema reuse with "definitions" and "$ref" is not yet supported, but everything
        else in drafts 04, 05, and 07 is fully tested and working.
        
        For details on how to use this strategy in your tests,
        [see the Hypothesis docs](https://hypothesis.readthedocs.io/).
        
        
        ## Supported versions
        
        `hypothesis-jsonschema` does not support Python 2, because
        [it's close to end of life](https://pythonclock.org/) and Python 3.6+ is a
        much nicer language.  Contact me if you would like this changed and are
        willing to either pay for or do the work to support Python 2.
        
        In general, 0.x versions will require very recent versions of all dependencies
        because I don't want to deal with compatibility workarounds.
        
        `hypothesis-jsonschema` may make backwards-incompatible changes at any time
        before version 1.x - that's what semver means! - but I've kept the API surface
        small enough that this should be avoidable.  The main source of breaks will be
        if or when schema that never really worked turn into explicit errors instead
        of generating values that don't quite match.
        
        
        ### Changelog:
        
        #### 0.8.2 - 2019-05-21
        - Improve performance for object schemas where the min and max size can be
          further constrained from `properties` and `propertyNames` attributes.
        
        #### 0.8.1 - 2019-03-24
        - Supports draft-04 schemata with the latest version of `jsonschema`
        
        #### 0.8.0 - 2019-03-23
        - Further improved support for `allOf`, `oneOf`, and `anyOf` with base schemata
        - Added support for `dependencies`
        - Handles overlapping `patternProperties`
        
        #### 0.7.0 - 2019-03-21
        - Now requires `jsonschema` >= 3.0
        - Improved support for `allOf`, `oneOf`, and `propertyNames`
        - Supports schemata with `"type": [an array of types]`
        - Warning-free on Hypothesis 4.11
        
        #### 0.6.1 - 2019-02-23
        - Fix continuous delivery configuration (*before* the latent bug manifested)
        
        #### 0.6.0 - 2019-02-23
        - Support for conditional subschemata, i.e. the `if`, `then`, `else` keywords,
          and the `anyOf`, `allOf`, `oneOf`, and `not` keywords.
        
        #### 0.5.0 - 2019-02-22
        - Works with `jsonschema` 3.0 pre-release
        - Initial support for draft06 and draft07
        
        #### 0.4.2 - 2019-02-14
        - Dropped dependency on `canonicaljson`
        - Less warnings on Python 3.7
        
        #### 0.4.1 - 2019-02-06
        - Relicensed under the more permissive Mozilla Public License, like Hypothesis
        - Requires Hypothesis version 4.0 or later
        - Fixed an array bounds bug with `maxItems` and `contains` keywords
        
        #### 0.4.0 - 2018-11-25
        Supports string formats (email, datetime, etc) and simple use of the
        `"contains"` keyword for arrays.
        
        #### 0.3.0 - 2018-11-25
        Good support for all basic types.  MVP.
        
        #### 0.2.0 - 2018-11-24
        Inference for null, boolean, string, and numeric types.
        
        #### 0.1.0 - 2018-11-21
        Stake in the ground (generate arbitrary JSON and filter it!)
        
Keywords: python testing fuzzing property-based-testing json-schema
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Hypothesis
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.6
Description-Content-Type: text/markdown
