Giter Site home page Giter Site logo

openapi_conformance's People

Contributors

danielbradburn avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

moagstar

openapi_conformance's Issues

Strategies.strings does not correctly apply min and max

The fist parameter to st.text is the alphabet that should be used, at the moment we pass **min_max. We should change this so that the first parameter to st.text is st.characters. I also think we should pass a min_codepoint=1 to ensure we don't generate text with a nul character in it.

Add ability to suppy custom settings to check_operation

At the moment check_operation uses given on an inner function with no way to control the settings (number of examples, health checks etc). It would be good if the user could control this externally, for example by optionally passing the arguments to the hypothesis settings decorator to OpenAPIConformance.init

Strategies.objects does not support additionalProperties

For example if we plug the following schema into Strategies.objects....

additionalProperties:
  type: int

Examples of this strategy produce empty dictionaries, whereas values such as the following should be expected:

{"hello": 32}

NOTE: The type can actually be any arbitrary schema, so we should be able to generate complex values.

Strategies.objects does not merge allOf with own schema

When you have the following schema:

    Derived:
      allOf:
        - type: object
          properties:
            baseProperty:
              type: string
      properties:
        derivedProperty:
          type: string

Strategies.objects will happily generated objects with baseProperty but properties from it's own schema (i.e. derivedProperty) will not be generated. This is because it chooses either the allOf or it's own schema for generation (i.e. for schema in schema.all_of or [schema]). This should be changed to include all_of and it's own schema.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.