-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Flatten REST POST payload #3188
Comments
💯 % agree. The |
I actually think this structure makes sense as it decouples the content and the meta information. Not feeling too strongly about it. But would also avoid this refactor. |
But there is no metadata fields persay...all the fields are primary/first-class-citizens imho. |
I agree with this proposal, we can keep the base request struct for validation purposes and flatten the request body |
@fedekunze precisely what we're suggesting! |
Ok cool. I would just not do it because it doesn't deliver a clear value to me and is a breaking change. |
@faboweb's concern is mine as well. |
I think @faboweb got a point here, I can feel frontend's pain in making many changes for the sake of little to none value - can we at least change the inner object's name please? |
|
what's the consensus on this proposal then ? I'm fine with leaving |
I still agree that we should flatten it completely. |
Up-to-date structure follows:
|
|
Imho, we should flatten the type. |
Yes, fair enough. |
Didn't we do this? Also we removed a large amount of data from the |
(sprung from #3179 (comment))
Presently,
POST
requests body embed aBaseReq
nested object, e.g.POST tx/sign
takes a JSON object like the following example:I'd propose to promote
base_req
fields and treat them as first-class citizens - this seems to make sense as those fields are required for the request to be successfully processed. That would simplify and flatten the expected data structure, which would then look like as follows:Please discuss.
/CC @faboweb @alexanderbez @jackzampolin @fedekunze @sabau @cwgoes
For Admin Use
The text was updated successfully, but these errors were encountered: