-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Comments
@shimks , good for estimation? if so, pls move to |
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? |
@shimks I think #750 is created to implement the first criteria in this story:
I would suggest we still use #750 for implementing the first criteria, and get back to this issue when work on the second criteria
|
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.
|
Discussed the scope & acceptance criteria with @raymondfeng and @jannyHou . Removed from GA, we should split this story into multiple smaller ones. |
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 |
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 |
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
Create an extensive OpenAPI type -> JS run-time type converters
string
type toDate
type converter (done by Use OpenAPI v3 spec to coerce primitives in query, path and headers #750)string
type toBuffer
type converter (done by Use OpenAPI v3 spec to coerce primitives in query, path and headers #750)string
type to JS run-time converter (likenumber
andboolean
; done by Use OpenAPI v3 spec to coerce primitives in query, path and headers #750)Address
)Make it easy forThis is tracked by OpenAPI decorator does not properly generate schemas of type@requestBody
(and other parameter-level decorators) to specify custom model class that should be used to validate the request body when the actual parameter is of typeDeepPartial<MyModel>
. Make sure this works forArray<DeepPartial<MyModel>>
too.Partial
#1179.A registry of deserializers related to type information. Modify decorators to allow users to provide a reference to a custom deserializer to use. This is related to Extensibility epic, see Spike: allow extensions to contribute custom validators and serializers/deserializers for REST layer #1463 which is tracking this feature.
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: