Open
Description
Extracted from #30 (comment):
The Swagger schema defines some patternProperties, including vendor extensions, path items and responses. It also defines some string values with pattern constraints, including host and basePath.
Code assist shows these patterns as suggestions, and there are two problems:
- The patterns aren't a user-friendly indication of what is expected in this context.
- The patterns, when chosen from the suggestion list, are inserted verbatim into the document, and they are not legal values.
Invoke content-assist for response code:
The first option is ([0-9]{3})$|^(default)$
, choosing it will create an invalid model:
/taxFilings:
get:
responses:
([0-9]{3})$|^(default)$:
PatternProperties are probably more useful in proposal description than for replacementString.