0

I have a requirement to add validation in form of regex on key and value of map object in Swagger/OpenAPI

So lets say i have a Map<String, String> labels. Keys must be a lowercase name followed by a slash. The value part must be sequences of [a-zA-Z0-9] separated by any of [-_.].

not sure if something like that is supported..

 labels:
      type: object
      additionalProperties:
        type: string  
Happy Coder
  • 1,090
  • 15
  • 32

0 Answers0