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

Support JSON any type #72

Open
rafalkrupinski opened this issue Aug 16, 2024 · 0 comments
Open

Support JSON any type #72

rafalkrupinski opened this issue Aug 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rafalkrupinski
Copy link
Contributor

When the return type is unknown at the coding time, allow returning values as a type hint representing any JSON value.

Any JSON value is one of

  • None
  • str
  • int
  • float
  • list of any JSON values
  • model class with all fields of any JSON value type (object).

This type could be used for any header or model field, including nested fields. Using it denotes an unknown type (no type in OpenAPI schema) and must not trigger UnexpectedResponse.

@rafalkrupinski rafalkrupinski added the enhancement New feature or request label Aug 16, 2024
@rafalkrupinski rafalkrupinski transferred this issue from python-lapidary/lapidary-render Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant