-
Notifications
You must be signed in to change notification settings - Fork 11
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
Polymorphism and discriminator for specific requirements #39
Comments
Hi @GillesInnov35 , Thank you for the proposal. It may work well, but it may make API definition more complex, and I am not quite sure if it is easy to use. Just a comment. Thanks, |
I think polymorphism is the right way to have multiple country-specific attributes in a single spec.
|
Thanks @StefanoFalsetto-CKHIOD, my bellow comments
I agree with you, dataType is not appropriate to what it should meaning. I'm not sure that language should be used. In our case what we want to distiguish are specific attributes which not only depend on language but also on countries (for example Netherlands requirements). WDYT ?
Yes,I agree, distinction could be placed at the end (suffix ).
Yes, , common is the right term |
hi @ALL, do you think we could move forward on this issue in order to address specific countries' attributes. We'll start to implement KYC Match on our side and the project team considers that specific attributes (such as japaneese attributes) may not be proposed as they're not common attributes but mandatory for some countries.
What do you think about usage of polymorphism ? Could we consider this for Meta release of september ? It's already implemented in one CAMARA's API. Corresponding proposal for discussion in PR #43 |
Hi @GillesInnov35 , all, Thanks very much, Gilles, for your further comment. Sorry for the late comment. From KDDI side, I have discussed internally with our product team. We really appreciate your proposal in this issue, but our feeling is that it could make the API rather complexed. Actually, we have not received any proposal for additional attributes so far. I don't think currently there is any problem with the current plain listing of the attributes, and, as all attributes are optional, you can just omit any attributes you do not need. Also as you pointed out in another issue (Issue #75), Meta release timing is coming soon, and we need test specifications and some other things to do, so, I think it may be better to keep v0.1.0 as it is and to choose v0.1.0 for the September Meta release. This may be Issue #75 topic, though. Best regards, |
hi @ToshiWakayama-KDDI , thanks a lot for your feedback. I really think this is not complex and in line with Open API Specifications 3.0 known by much developers. I could help MNO to expose only attributes for which they are concerned. |
Use of dataType discriminator or polymorphism with schemas inheriting to address specific attributes for countries.
For example define a common international schema and a specific schema for japaneese requirements
The text was updated successfully, but these errors were encountered: