Skip to content

Feature request: Support for oneOf, anyOf, and allOf keywords in OpenAPI specs #68

@LuukBosch

Description

@LuukBosch

Feature

Support oneOf, anyOf, and allOf in OpenAPI specifications

Why and what

Reynard currently doesn't build objects for schemas using oneOf, anyOf, or allOf keywords, which are common in OpenAPI 3.0 specifications for polymorphic types and schema composition. This forces developers to work with raw hash data instead of proper model objects.

It would be nice if Reynard automatically detect these keywords in schemas, resolve which variant match the response data, and build the appropriate Ruby model objects just like it does for regular object and array types.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions