-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mobility Layer2 config: check out the issues with validation with openAPI version 3.1 #266
Comments
From what was discussed on the call, we tested the below items:
There could be additional issues that I might have missed. But from my testing I found these things to be working. Sent a mail to Tanya to get the details of the issues so that the team can dig deeper into it. |
Extended the postman collected which is used to test the layer2 configuration on the test server (not the protocol server instance) This was used while developing the layer2 as the existing protocol server did not have support for openAPI 3.1 at the time. This could be used for testing when we implement the openAPI 3.1 in protocol serevr. Took considerable time to add the cases and test. OAS3.1-validator-Mobility-Test-Server.postman_collection.json |
cc @emmayank |
All the test cases tested on the l2 config with the test server are listed in this file: https://docs.google.com/spreadsheets/d/1tEp8TxpSfuOLXimGH3gXIFWIxvffZoWW1fsaoEMuY9E/edit?gid=0#gid=0 |
cc @faizmagic |
Tanya have not shared the list or the details of the exact issues yet, we investigated the L2 based on the verbal feedback she had given on a call. |
Had a call with Tanya on 16th of September. I Demonstrated my postman collection and showed that the contains and allof combination is working for validation. Unfortunately, we could not continue the call, as she had to drop off. Nevertheless I was able to show that contains and allof combination works fine. shared with her my postman collection, she can use the postman to try it out offline. shared with her the ajv version that the openapi-backend library is using. |
Had a discussion with Abhishek Yadav regarding these issues.
Based on this exercise it is clear that "openapi-express-validator" library has some issues in it when testing out the openAPI version 3.1. as the "openapi-backend" library is able to validate the requests successfully using the same layer2. Asked Abhishek to research more on it and decide upon the way forward from here. |
Had a call with Tanya, she highlighted some of the stuffs that she had tested with layer2 config: She tried 3 ways.
out of the above 3, the later 2 are validating the rules added in the layer2 config as expected Next step is to finalise one way we are going to use to add openapi3,1 support in the protocol server based on the above info. we can either:
This decision is to be taken by the Dev team. Tanya wants to connect to discuss the same, as she has done considerable testing with this, her inputs might be helpful. |
Issue exploration and the necessary discussions are done, further progress related to this can be tracked in this ticket. |
Description
We have a sample layer2 config for the mobility domain. Layer2. This layer2 config uses the opneAPI version 3.1.
Beckn Protocol server uses the "express-openapi-validator" module internally for request validations.
To test out the above layer2 config with Beckn protocol server, Tanya upgraded her local instances of the protocol server to a new version of express-openapi-validator library which supports openAPI 3.1.
This version was used for the validations.
While doing the testing, we faced some issues, as part of this ticket, we need to investigate those issues and find solutions.
Key Points:
Protocol server uses node module "express-openapi-validator" for the validations.
While developing the l2 config, We used node module "openapi-backend" module for the validations.
There might be some differences between how these libraries do the validations.
Goals
Expected Outcome
No response
Acceptance Criteria
No response
Implementation Details
NA
Mockups/Wireframes
No response
Product Name
protocol server
Domain
No response
Tech Skills Needed
Express.js, JavaScript, Other
Complexity
High
Category
Research
The text was updated successfully, but these errors were encountered: