-
Notifications
You must be signed in to change notification settings - Fork 148
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
Handle Schema default values (was: How to compose parameters) #174
Comments
I don't think this is possible with letk/plumbing syntax. You can use |
Is it still possible to attach swagger meta-data via |
Ok, answered this myself; you can attach metadata with |
@Deraen any thoughts on handling default values? wrapping keys in |
@t-jones Yes we are planning on using metadata set by plumbing letk. But anyway, that won't help in this case, the metadata is purely for documentation, the default value itself needs to still be handled by destructuring or some other way. |
There is a partial solution for handling defaults with custom coercion matcher in the Plumbing google group. Idea is to finalize it and add it to our schema-tools, enabling schema defaults for wider audience. I'm on vacation, so feel free to implement wirh PR. |
related: metosin/schema-tools#25. |
Possibly related: metosin/ring-swagger#138 |
I have a set of services with a common set of query parameters. What's the best way to reuse/compose their definition across a set of services? I've been playing with the GET* and friends macro, learning about letk/plumbing, but can't see a way to make it happen at this level of the stack. Is it possible, and what am I missing?
It's entirely possible I'm thinking about this problem incorrectly, so open to feedback on that as well.
The text was updated successfully, but these errors were encountered: