-
Notifications
You must be signed in to change notification settings - Fork 59
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
Remove useReferences from SchemaOptions #23
Conversation
761fd9e
to
7b2677e
Compare
@dmjio can you review this, please? |
I will try to outline the changes in this PR, since the code is not very self-explanatory. The goal of this PR is to
Since schema references appear in different data structures I am using I have added some documentation here to make it clear what different helpers are for. In order for generic inlining to work, we need
@dmjio these There are also two minor changes in this PR:
|
This is necessary to forbid (at runtime) using file as null: >>> fromConstr (toConstr (SwaggerFile :: SwaggerType ParamOtherSchema)) :: SwaggerType Schema SwaggerNull It also simplifies Data instances a bit.
OK, I have played with I am going to merge this PR now. |
Remove useReferences from SchemaOptions
Closes #21.