-
If you need a pattern multiple times, I would like to reduce duplication. Is it possible to reference a pattern for a string? |
Beta Was this translation helpful? Give feedback.
Answered by
handrews
Jul 19, 2023
Replies: 2 comments 3 replies
-
You can just have a schema that only has |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
robp94
-
Closing as this is resolved from the specification perspective (or as resolved as it can be- OAS 3.x cannot change JSON Schema's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just have a schema that only has
{"pattern": "the pattern"}
and use"$ref"
to include it.