Skip to content

Commit cb8baa3

Browse files
committed
Fix examples (review feedback)
1 parent 3f57f49 commit cb8baa3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/oas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,10 +2559,9 @@ components:
25592559
content:
25602560
text/plain:
25612561
schema:
2562+
# Due to lack of support for multiline regular expressions
2563+
# in the `pattern` keyword, not much validation can be done.
25622564
type: string
2563-
allOf:
2564-
- pattern: "^lang=[^;];.*Expires="
2565-
- pattern: "^foo=[^;];.*Expires="
25662565
examples:
25672566
WithExpires:
25682567
# This demonstrates that the text is required to be provided
@@ -2582,7 +2581,7 @@ components:
25822581
- foo
25832582
additionalProperties:
25842583
type: string
2585-
pattern: "^[^[:space:]]$"
2584+
pattern: "^[^[:space:]]*$"
25862585
style: simple
25872586
explode: true
25882587
examples:

0 commit comments

Comments
 (0)