-
Notifications
You must be signed in to change notification settings - Fork 52
Remove Step
after top level singleton
#113
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
Comments
I don't really know how From an API perspective:
|
What do you mean how it "works"? It defines the schema (think urls) for the resource. To answer your bullets:
|
What I meant was that I didn't see the implications of removing the Step. |
Oh and also, i meant having a |
No, I don't think so. We have |
Right now, the
Schema
constructor takes a top level construct (Maybe (Cardinality sid mid)
), and aStep
. However, when the top level thing isSingle
, it doesn't make sense to have the subsequentStep
: nesting listings and getters on top of a singleton getter is weird, and for statics you can get the same effect with actions. The statics also don't work.Rather than trying to make the statics work, I propose to remove the
Step
if the top level thing is aSingle
. This is a breaking change toSchema
(which people probably don't use) andsingleton
. It would also probably be a bit of work in the router and perhaps rest-gen. @bergmark What do you think?The text was updated successfully, but these errors were encountered: