Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Per-media type data generators #962

Closed
Stranger6667 opened this issue Dec 26, 2020 · 0 comments · Fixed by #2095
Closed

[FEATURE] Per-media type data generators #962

Stranger6667 opened this issue Dec 26, 2020 · 0 comments · Fixed by #2095
Assignees
Labels
Difficulty: Intermediate Requires some experience Priority: High Important but not urgent Specification: OpenAPI Specific to OpenAPI Type: Feature New functionalities or enhancements

Comments

@Stranger6667
Copy link
Member

Stranger6667 commented Dec 26, 2020

Is your feature request related to a problem? Please describe.
It is not currently possible to generate arbitrary binary data. The current way to define it is to use format: binary in the request body definition.

Describe the solution you'd like
Pluggable data generators for such cases. The behavior might be like this:

  • If there is a registered data generator for media type X, then don't use hypothesis-jsonschema; use that generator
  • Then don't use serializers; send it as is (serializers are for data, structured via JSON schemas)

The implementation might be similar to serializers, and it seems quite simple

@Stranger6667 Stranger6667 added Status: Needs Triage Requires initial assessment to categorize and prioritize Type: Feature New functionalities or enhancements labels Dec 26, 2020
@Stranger6667 Stranger6667 self-assigned this Dec 26, 2020
@Stranger6667 Stranger6667 added Difficulty: Intermediate Requires some experience Priority: High Important but not urgent Specification: OpenAPI Specific to OpenAPI and removed Status: Needs Triage Requires initial assessment to categorize and prioritize labels Dec 27, 2020
@Stranger6667 Stranger6667 added this to the 3.1 milestone Jan 14, 2021
@Stranger6667 Stranger6667 removed this from the 3.1 milestone Mar 8, 2021
@Stranger6667 Stranger6667 changed the title [FEATURE] Support non JSON Schema based data generators [FEATURE] Per-media type data generators Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Intermediate Requires some experience Priority: High Important but not urgent Specification: OpenAPI Specific to OpenAPI Type: Feature New functionalities or enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant