Forum Discussion

som's avatar
som
Occasional Visitor
6 months ago

anyOf with pattern keyword in schema

can we write like this in 3.0 swagger?

schema:
            anyOf:
              - pattern: ^[a-zA-{6,200}$
              - pattern: ^[A-Z0-9!@$._-]]{4,200}$
            type: string

No RepliesBe the first to reply