crunchr / openapi_conformance Goto Github PK
View Code? Open in Web Editor NEWA tool for validating an OpenAPI specification against an implementation.
A tool for validating an OpenAPI specification against an implementation.
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.
We a number format is supplied (see https://swagger.io/docs/specification/data-models/data-types/#numbers) then the number strategy should behave in such a way that the maximum / minimum values for the data type are respected.
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
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.
The example snippet in the readme is the basis for what is needed to generate a request for the django TestClient. It might be nice to wrap this up in a function (or at least an example).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.