Forum Discussion

saranyapuru's avatar
saranyapuru
New Contributor
3 years ago

What is the equivalent or workaround for patternProperties in Yaml format?

  • chichepo's avatar
    chichepo
    Champion Level 1

    Hi Saranyapuru
    Can you be more specific in your question?
    Which version of OpenAPI are you using? 
    As far as I know, it is suported in v3.1, otherwize, you will have to use regular object definitions with "additionalProperties": false to ensure your definition limits
    Look at this at this post and let us know.