Skip to content
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

Implement coercion between HTTP and LB4 layers(converter and deserialize) #1306

Closed
3 of 8 tasks
shimks opened this issue May 4, 2018 · 11 comments
Closed
3 of 8 tasks

Comments

@shimks
Copy link
Contributor

shimks commented May 4, 2018

Description / Steps to reproduce / Feature proposal

This issue is a follow up to #1057.
For DP3, we'd like to provide coercion between the http-LB4 layer.

See also #750 and #100.

Acceptance Criteria

See Reporting Issues for more tips on writing good issues

@dhmlau
Copy link
Member

dhmlau commented May 4, 2018

@shimks , good for estimation? if so, pls move to needs estimate column. thanks.

@shimks
Copy link
Contributor Author

shimks commented May 8, 2018

Rejecting as we've decided on splitting the story into two: coercion through openapi spec, and validation + focus on extension capabilities of both coercion and validaion

@shimks shimks changed the title Implement coercion/validation between HTTP and LB4 layers Implement coercion between HTTP and LB4 layers May 8, 2018
@bajtos
Copy link
Member

bajtos commented May 28, 2018

@shimks

Rejecting as we've decided on splitting the story into two: coercion through openapi spec, and validation + focus on extension capabilities of both coercion and validaion

Should we close this issue then?

@bajtos
Copy link
Member

bajtos commented May 28, 2018

What is the relation of this story to #750 and #100?

@bajtos bajtos added the p2 label May 28, 2018
@shimks
Copy link
Contributor Author

shimks commented May 28, 2018

@bajtos Oops, that message was for rejecting for 'estimation' when it was initially brought up. I've updated the criteria and intended this to be the main task to work on, but essentially #750 and this issue seem to be a duplicate. Which one should we close?

@jannyHou
Copy link
Contributor

@shimks I think #750 is created to implement the first criteria in this story:

Create an extensive OpenAPI type -> JS run-time type converters
Create string type to Date type converter
Create string type to Buffer type converter
Create other string type to JS run-time converter (like number and boolean)

I would suggest we still use #750 for implementing the first criteria, and get back to this issue when work on the second criteria

Create a metadata 'type' for parameters, which may include inference from explicitly specified metadata

@dhmlau dhmlau added non-DP3 and removed DP3 labels Jun 12, 2018
@jannyHou jannyHou changed the title Implement coercion between HTTP and LB4 layers Implement coercion between HTTP and LB4 layers(converter and deserialize) Jun 25, 2018
@jannyHou
Copy link
Contributor

How about use #100 as the deserialization story?(which is currently the second acceptance criteria in this story)

@bajtos
Copy link
Member

bajtos commented Jun 25, 2018

How about use #100 as the deserialization story?(which is currently the second acceptance criteria in this story)

IMO, #100 is covering a slightly different aspect of coercion, see the examples I added to issue description few moments ago. I am cross-posting them below.

  1. Encode an array of strings as a comma-separated list.

    GET /api/domains?tlds=com,net,eu
    

    Sets tlds argument to ['com', 'net', 'eu'].

  2. Send a "filter" query as JSON-encoded value.

    GET /api/products?filter={"where":{"name":"Pen"},"limit":10}
    

    Sets filter argument to {where: {name: 'Pen'}, limit: 10}.

@bajtos bajtos added the LB4 GA label Jul 31, 2018
@bajtos bajtos added post-GA and removed LB4 GA labels Aug 13, 2018
@bajtos
Copy link
Member

bajtos commented Aug 13, 2018

Discussed the scope & acceptance criteria with @raymondfeng and @jannyHou . Removed from GA, we should split this story into multiple smaller ones.

@stale
Copy link

stale bot commented Oct 28, 2019

This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.

@stale stale bot added the stale label Oct 28, 2019
@stale
Copy link

stale bot commented Nov 27, 2019

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

@stale stale bot closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants