HomePhorge

Allow OpenApiSpex.schema() to take struct

Description

Allow OpenApiSpex.schema() to take struct

Functions that dynamically construct a Schema can have their result passed
as-is to OpenApiSpex.schema without doing Map.from_struct. The change is to
Map.delete the struct atom - which will do nothing on map and convert a
struct to map otherwise.

Details

Provenance
fmcgeoughAuthored on Jun 10 2019, 12:33 PM
Parents
R22:957cd0a1adc0: Merge pull request #115 from holsee/fix/unsafe_atom_generation_in_docs
Branches
Unknown
Tags
Unknown

Event Timeline