Hi, I want to validate the proxy request against a dynamycally generated openapi spec (preferably generated at runtime), this is because I want to enforce the required fields based on the application consuming my API.
Looking at the OASValidation policy documentation https://cloud.google.com/apigee/docs/api-platform/reference/policies/oas-validation-policy#oasresour... now I can use a flow variable in order to specify the URL of the resourceFile that I want to validate against. I don't want to create a resourceFile and deploy a new revision everytime I want to add an possible case. It is possible to make this validation against a json object stored in a flow variable? so I can generate the openapi JSON file dynamycally, or there is possible to create a resourcefile at runtime?
The closest workaround I saw is using a library to manually make the validation https://stackoverflow.com/questions/24613278/how-do-i-do-json-schema-validation-using-apigee-edge-po... (note: I'm using apigee x) but I would like to use the OASValidation policy instead. Thank you in advance
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |