You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that #19 is merged we can change useReferences semantics or even get rid of the option altogether.
Currently useReferences only affects schemas reachable from GToSchema, so e.g. for this type Object is not reachable:
dataObjects=Objects [Object]
With declareNamedSchema we can now inline every schema.
Moreover since we have access to all used schemas and we can choose which one to leave and which one to inline after calling declareNamedSchema.
In a bit more general setting, we might implement this function:
--| Inline schemas with given names and remove them from definitions.inlineSchemas:: [Text] ->Definitions->Definitions
This can be useful for tweaking final Swagger spec.
The text was updated successfully, but these errors were encountered:
Now that #19 is merged we can change
useReferences
semantics or even get rid of the option altogether.Currently
useReferences
only affects schemas reachable fromGToSchema
, so e.g. for this typeObject
is not reachable:With
declareNamedSchema
we can now inline every schema.Moreover since we have access to all used schemas and we can choose which one to leave and which one to inline after calling
declareNamedSchema
.In a bit more general setting, we might implement this function:
This can be useful for tweaking final
Swagger
spec.The text was updated successfully, but these errors were encountered: