Refactor code to comply with #8 #39
Loading…
Reference in a new issue
No description provided.
Delete branch "lda/telodendria:refactor-6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Just one question: is implementing j2s parsers for endpoints that
require one property really useful?
NOTE: Currently untested. I doubt anything is wrong with this code, but I
am not totally confident about it.
Please review the developer certificate of origin:
the right to submit it under the open source licenses of the
Telodendria project; or
my knowledge, is covered under an appropriate open source license and
I have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the
Telodendria project license; or
who certified (1), (2), or (3), and I have not modified it.
made public and that a record of the contribution—including all
personal information I submit with it—is maintained indefinitely
and may be redistributed consistent with this project or the open
source licenses involved.
origin, and I certify that I have permission to submit this patch
under the conditions specified in it.
WIP: Refactor code to comply with #6to WIP: Refactor code to comply with #8No, probably not. I would not bother with any endpoints that only have fewer than 5 properties. 5 or more probably makes sense to have a schema for because then the code gets longer.
This looks like a great start. When I have time, I will test the endpoints modified to make sure they still function according to the specifications.
Just implemented for POST /login, it seems to leak memory(but it's probably Telodendria/Cytoplasm#17), but aside, it seems to work.
@ -71,0 +86,4 @@
userIdentifier.user = NULL;
userIdentifier.type = NULL;
Looking at these lines:
Maybe we should just do this instead:
That way, if more fields get added to either of these structures, we aren't at risk of accidentally adding undefined behavior if we forget to initialize the fields here.
Thoughts?
@ -43,12 +45,9 @@ ROUTE_IMPL(RouteLogin, path, argp)
This line:
appears to declare an unused variable. If it isn't needed, can you remove this line?
Nevermind, I was on the wrong commit. I forgot to do a
git fetch
.I just did some very basic testing and everything appears to work fine. Good work. When you're ready for me to merge this, just remove the
WIP:
prefix as always.Thanks for your work on this, it is much appreciated.
WIP: Refactor code to comply with #8to Refactor code to comply with #8