Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.4(schema): Update empty security array constraint #4069

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
528c3c7
Merge branch 'v3.0.4-dev' into v3.0.4-dev
handrews May 3, 2024
06a36ba
Merge pull request #3742 from karenetheridge/v3.0.4-dev
handrews May 3, 2024
0eccb52
Clarify constraints on Parameter Object fields
handrews Apr 26, 2024
b6f44da
Sync .gitignore from main
ralfhandl May 7, 2024
2f8df3d
Merge pull request #3787 from OAI/fix/3.0.4/gitignore
handrews May 7, 2024
d5fccc5
Review feedback from notEthan and ralfhandl
handrews May 8, 2024
eb95f04
Merge pull request #3760 from handrews/param-fields
miqui May 9, 2024
a044fd4
Merge pull request #3766 from lornajane/update-deepObject-description
ralfhandl May 9, 2024
c7cae51
Merge pull request #3779 from handrews/undef-impdef
lornajane May 14, 2024
318a77b
Merge pull request #3765 from lornajane/security-scheme-case-insensitive
ralfhandl May 14, 2024
48a953f
Link for case insensitivity of auth scheme
ralfhandl May 14, 2024
c4482f3
Fix "it" -> "its" typo
handrews May 14, 2024
e97ea4a
Merge pull request #3801 from ralfhandl/3.0.4/link-for-case-insensiti…
earth2marsh May 16, 2024
bb25ab7
Merge pull request #3804 from handrews/typo
handrews May 16, 2024
8096aa0
Clarify allowEmptyValue -> disregard empty values
handrews May 16, 2024
32c92aa
Limit interoperable parsing expectations
handrews Apr 21, 2024
5573dc6
Schema Object does not have $ref in 3.0
handrews May 16, 2024
7e3b58b
Clarify discriminator + oneOf/anyOf/allOf usage (3.0.4)
handrews May 19, 2024
0bb7541
More discriminator guidance consolidation
handrews May 21, 2024
63d56f5
More wording improvements for discriminator.
handrews May 21, 2024
74b9f36
Merge pull request #3812 from handrews/disregard-empty-304
lornajane May 21, 2024
c069212
Merge pull request #3772 from handrews/multi-parse-304
handrews May 22, 2024
f3343c1
Clarify entry/complete document terminology (3.0.4)
handrews May 19, 2024
8acc31d
Merge pull request #3820 from handrews/entry-again-304
miqui May 23, 2024
4a46b20
Only one "is" is necessary (review feedback)
handrews May 23, 2024
87d023a
Merge pull request #3822 from handrews/disc-of-304
ralfhandl May 23, 2024
6a0ed25
Clarify Link Obj parameters as best we can (3.0.4)
handrews May 24, 2024
abd4485
Fix grammar (review feedback)
handrews May 24, 2024
1bfe6c3
Explain allowReserved in RFC6570 terms
handrews May 7, 2024
52d3f6c
Appendix on RFC6570-derived behavior
handrews May 13, 2024
8ab02d9
Resolution of relative URLs in CommonMark text (3.0.4)
handrews May 26, 2024
b25f83c
Note RFC6570 and message body adjustment
handrews May 26, 2024
f5914c7
Arrays and objects have limited support in parameters
handrews May 27, 2024
2f7def5
wording suggestion (review feedback)
handrews May 27, 2024
ad97a43
Fix typeo (review feedback)
handrews May 27, 2024
ed7a6d8
Fix handling of parameter names, clarify table entry
handrews May 27, 2024
00b75dd
Link to the Learn and Spec sites
handrews May 27, 2024
ce05949
Clarify "Schema"
handrews May 27, 2024
41d2a52
Global HTTP case-(in)sensitivity rule
handrews May 27, 2024
79ed972
Improved description of XML examples
handrews May 27, 2024
02df675
Clarify CommonMark extensibility.
handrews May 27, 2024
4cdcab3
Add description to the Example Object
handrews May 27, 2024
3ee70cd
Improve media type encoding examples
handrews May 28, 2024
b5d2229
Review feedback on RFC quotations vs linking
handrews May 28, 2024
656fd21
review feedback - typo
handrews May 29, 2024
3030962
Verbose Header Object documentation (3.0.4)
handrews May 30, 2024
ee40987
Stub out linked appendixes...
handrews May 30, 2024
9b49821
Mention the format registry in the data types section
handrews Jun 3, 2024
e386f10
Use ZIP+4 as a string, also shows encoding of +
handrews Jun 3, 2024
7e141bb
Wording improvement (review feedback)
handrews Jun 4, 2024
d6b71cd
Note extension registry in extensions section.
handrews Jun 4, 2024
7aef3b5
Better wording (review feedback)
handrews Jun 4, 2024
56b2a03
Clarify openIdConnectUrl #3630
m-mohr Apr 19, 2024
c545355
Update versions/3.0.4.md
m-mohr Apr 25, 2024
52c3c93
Update versions/3.0.4.md
m-mohr Apr 27, 2024
726929f
Further clarify discriminator usage (3.0.4)
handrews May 19, 2024
1308aa8
Use "discriminating value" consistently
handrews May 31, 2024
102fba6
Merge pull request #3824 from handrews/link-param-304
lornajane Jun 4, 2024
29e7658
Review feedback.
handrews Jun 4, 2024
96f8989
Better wording from review feedback
handrews Jun 4, 2024
f9dc67b
Better formatting (review feedback)
handrews Jun 4, 2024
e25e23c
better formatting (review feedback)
handrews Jun 4, 2024
43618e2
Warn of interop issues w/Markdown extensions
handrews Jun 5, 2024
f9813cd
Clarify version (Info Object) further
handrews Jun 5, 2024
52c9d88
Merge pull request #3880 from handrews/disc-backport-304
miqui Jun 6, 2024
75826ef
Merge pull request #3882 from handrews/m-mohr-fix-openid-disc
miqui Jun 6, 2024
82fe810
Merge pull request #3858 from handrews/markdown-uris-304
lornajane Jun 6, 2024
2f129ec
Wording consistency (review feedback)
handrews Jun 6, 2024
bace4b4
Review feedback
handrews Jun 7, 2024
fdb9570
Clarify confusing use of YAML "JSON Schema"
handrews Jun 8, 2024
d39dc03
Add Security Considerations (3.0.4)
handrews Jun 9, 2024
d3e0238
Consolidate guidance around examples (3.0.4) (#3893)
handrews Jun 9, 2024
44eda57
Merge pull request #3867 from handrews/header-obj-304
handrews Jun 10, 2024
8c3b071
Merge branch 'v3.0.4-dev' into rfc6570-304
handrews Jun 10, 2024
95910fc
Merge pull request #3864 from handrews/request-examples-304
handrews Jun 10, 2024
39448ef
Merge pull request #3818 from handrews/rfc6570-304
handrews Jun 10, 2024
d412bf8
Stub out all appendix headers (3.0.4)
handrews Jun 10, 2024
1d56e50
Merge pull request #3897 from handrews/stub-headers-304
handrews Jun 10, 2024
deebfd0
Appendix on converting data types to strings (3.0.4)
handrews May 22, 2024
b6e7204
Make Object names links (review feedback)
handrews May 23, 2024
1b6c426
Grammatical typo (review feedback)
handrews May 23, 2024
1cf5b0b
Use correct versions of JSON Schema and JSON specs
handrews May 23, 2024
aacbbc9
Add note about RFC6570 type conversions
handrews May 25, 2024
cd74c9d
Warnings for header and cookie serialization (3.0.4)
handrews May 23, 2024
96805ff
Fix spelling (review feedback)
handrews May 23, 2024
061dcbd
Merge pull request #3840 from handrews/ser-types-304
miqui Jun 10, 2024
67bdb5a
Merge pull request #3841 from handrews/h-and-c-304
miqui Jun 10, 2024
945905d
Merge pull request #3894 from handrews/sec-cons-304
ralfhandl Jun 11, 2024
f8d4abb
Merge pull request #3861 from handrews/editorial-304
lornajane Jun 11, 2024
dc41f76
Encoding Object content and header clarifications
handrews May 25, 2024
6326993
More detail on correlating properties
handrews May 25, 2024
ed03673
Fix typo (review feedback)
handrews May 28, 2024
328998e
Reword default handling (review feedback)
handrews Jun 5, 2024
65c2960
Split up Encoding fields like Param/Header
handrews Jun 10, 2024
285b300
Name the right section matching the link (review feedback)
handrews Jun 11, 2024
6cefd77
Discuss null values and contentType
handrews Jun 11, 2024
3734678
Merge pull request #3857 from handrews/enc-304
miqui Jun 12, 2024
b48c121
Appendix for percent-encoding concerns (3.0.4)
handrews May 25, 2024
972fcad
improve wording of style example table
handrews May 26, 2024
7d71c3b
review feedback - wording
handrews May 28, 2024
a345721
Stub out Appendix C for linking
handrews Jun 3, 2024
f19be05
Fix typo (review feedback)
handrews Jun 3, 2024
4847876
Further clarify style+explode examples
handrews Jun 8, 2024
a9fe16f
Better handling of empty/undefined in table
handrews Jun 10, 2024
ce87bf2
Update Header for changes to copied fields
handrews Jun 10, 2024
17e3eed
No need to mention deepObject for Header
handrews Jun 12, 2024
eec1906
Merge pull request #3859 from handrews/ser-percent-304
lornajane Jun 13, 2024
bdbabd4
Clarify resolving implicit connections (3.0.4)
handrews May 2, 2024
44f08ec
wording review feedback
handrews May 28, 2024
c302993
Apply suggestions from code review
handrews Jun 8, 2024
8de6836
More review feedback.
handrews Jun 8, 2024
e11a7cc
Add example resolution of Security Requirement
handrews Jun 11, 2024
ae35691
Fix stray random characters (review feedback)
handrews Jun 11, 2024
c8a154f
example as YAML/JSON via HTTP negotiation
handrews Jun 11, 2024
80ec461
Formatting fix (review feedback)
handrews Jun 11, 2024
1639c5d
Apply suggestions from code review
handrews Jun 12, 2024
64bba01
Fix heading levels
handrews Jun 13, 2024
d4ae1dd
Fix XML namespace syntax
handrews Jun 9, 2024
7b3d9d9
Clarify discriminator non-impact on validation
handrews Jun 13, 2024
7dd7719
3.0 uses URLs not URIs in refs
handrews Jun 13, 2024
5805283
Use document/description/definition consistently
handrews Jun 13, 2024
8c0acee
Merge pull request #3904 from handrews/heading-indent-304
ralfhandl Jun 14, 2024
97a7359
Fix stray mentions of parameters in other objects
handrews Jun 14, 2024
4a4289f
Include Header Object in data serialization list
handrews Jun 15, 2024
5c85c4c
Merge pull request #3917 from handrews/ser-header-304
miqui Jun 16, 2024
c5e6968
Merge pull request #3905 from handrews/xmlns-304
miqui Jun 16, 2024
11fc80e
Merge pull request #3906 from handrews/implicit-304
ralfhandl Jun 17, 2024
1ca6697
Merge pull request #3907 from handrews/disc-val-304
handrews Jun 17, 2024
d16e7ef
Merge pull request #3911 from handrews/enc-not-param-304
handrews Jun 17, 2024
eabf995
Consisent x- Param/Encoding/Header wording (3.0.4)
handrews Jun 17, 2024
936f8a5
Merge pull request #3919 from handrews/ext-304
ralfhandl Jun 18, 2024
6a72329
Minor editiorial and link target fixes (3.0.4)
handrews Jun 15, 2024
7792c15
Merge pull request #3920 from handrews/more-editorial-304
miqui Jun 19, 2024
8baca79
format: byte also defaults to octet-stream (3.0.4)
handrews Jun 19, 2024
e37325e
More definition -> description
handrews Jun 19, 2024
72f0aa6
Start consolidating media / encoding guidance
handrews Jun 19, 2024
7636fbf
Add section titles, fix levels
handrews Jun 19, 2024
fd71328
Consolidating form guidance: Media Type Object
handrews Jun 19, 2024
8cdbf83
Re-organize form-urlencoded guidance
handrews Jun 20, 2024
0a1cb43
Merge pull request #3908 from handrews/doc-desc-304
lornajane Jun 20, 2024
1a405a7
typo: paramter
ralfhandl Jun 20, 2024
85fb893
Another typo
ralfhandl Jun 20, 2024
d5da50e
Two more typos
ralfhandl Jun 20, 2024
ea77f57
Merge pull request #3924 from ralfhandl/3.0.4-dev/typo-paramter
lornajane Jun 20, 2024
d8f0140
Reorganize multipart/form-data guidance
handrews Jun 20, 2024
e8cc358
Fix base64 encoding example for URL quoting
handrews Jun 20, 2024
cf3e5f3
Restore note about contentMediaType
handrews Jun 20, 2024
a4d3575
Authoritative rendering; "schema" usage (3.0.4)
handrews Jun 21, 2024
396064d
Merge pull request #3923 from handrews/multipart-304
miqui Jun 23, 2024
6e7b1f5
Merge pull request #3927 from handrews/authoritative-304
miqui Jun 23, 2024
4688b81
Merge pull request #3922 from handrews/byte-encoding-304
miqui Jun 23, 2024
60f164d
Clarify interaction of format: byte and Content-Transfer-Encoding hea…
mikekistler Jun 24, 2024
7bb584f
Address PR review commments
mikekistler Jun 24, 2024
48eff63
Align with 3.1.1 - up to line 2508
ralfhandl Jun 26, 2024
9312d08
Remaining unnecessary differences
ralfhandl Jun 26, 2024
a801ba9
Update versions/3.0.4.md
ralfhandl Jun 26, 2024
55d932e
Don't monospace Xxx Object
ralfhandl Jun 27, 2024
d4425ba
Reword as discussed in TSC meeting today
mikekistler Jun 27, 2024
37866fb
Avoid "partially condensed YAML"
mikekistler Jun 27, 2024
8b8f2cc
Final polish
mikekistler Jun 27, 2024
1445593
Merge pull request #3933 from ralfhandl/3.0.4/formatting-inconsistencies
ralfhandl Jun 28, 2024
c0d0f1b
Merge branch 'v3.0.4-dev' into v3.0.4/sync-with-3.1.1
ralfhandl Jun 28, 2024
c421081
Merge pull request #3929 from mikekistler/mdk/clarify-encoding
miqui Jun 29, 2024
d56b266
Merge pull request #3931 from ralfhandl/v3.0.4/sync-with-3.1.1
whitlockjc Jul 11, 2024
c0696c1
Editorial improvements from 3.1.1
ralfhandl Jul 12, 2024
5802ec8
Merge pull request #3954 from ralfhandl/v3.0.4/sync-with-3.1.1
lornajane Jul 18, 2024
f9dc2ef
Sync 3.0.4 with 3.1.1
ralfhandl Jul 22, 2024
457eab8
Merge pull request #3966 from ralfhandl/v3.0.4/sync-with-3.1.1
darrelmiller Jul 23, 2024
e11113d
Improved RFC section links
ralfhandl Jul 24, 2024
5fb8293
Section link instead of page link
ralfhandl Jul 25, 2024
7d7f69d
Align RFC links, show all RFCs in Normative References
ralfhandl Jul 29, 2024
50cbb04
Aligned JSON Schema URLs
ralfhandl Jul 29, 2024
8caa6bf
OpenID Connect: official Specref ID
ralfhandl Jul 29, 2024
5d58752
Merge pull request #3972 from ralfhandl/v3.0.4/improved-RFC-section-l…
miqui Aug 1, 2024
431e6c0
Run prettier to format the markdown
lornajane Aug 1, 2024
d899954
Run markdownlint with fix for layout and formatting
lornajane Aug 1, 2024
254abae
Manually fix additional markdownlint problems
lornajane Jul 1, 2024
42a261a
Remove table of contents, new tools don't need it
lornajane Aug 1, 2024
531253e
Update anchors and internal links
lornajane Aug 1, 2024
fe10c1c
Merge pull request #3932 from lornajane/fix-markdown
ralfhandl Aug 2, 2024
66c8168
Improved request-response example
ralfhandl Aug 5, 2024
b7c20ee
Merge pull request #3997 from ralfhandl/3.0.4/consistent-formatting
ralfhandl Aug 7, 2024
06460d1
3.0.4: minor nits
ralfhandl Aug 7, 2024
4339178
Section 4.3.2
ralfhandl Aug 7, 2024
7f37999
servers array at different levels
ralfhandl Aug 8, 2024
b5d529c
language, formatting
ralfhandl Aug 8, 2024
8abc73d
braces according to Wikipedia
ralfhandl Aug 8, 2024
cb05844
Mismatch between table description and table heading
ralfhandl Aug 8, 2024
1aed970
Update 3.0.4.md
ralfhandl Aug 8, 2024
3a26bfc
Update 3.0.4.md
ralfhandl Aug 9, 2024
cc55021
Double-quotes around string values
ralfhandl Aug 9, 2024
1fa3eda
Formatting of string values
ralfhandl Aug 9, 2024
22a1553
Style Examples values
ralfhandl Aug 9, 2024
70325c4
Responses
ralfhandl Aug 9, 2024
2b01041
X Object always with Capital O
ralfhandl Aug 9, 2024
4aaeaa9
casing
ralfhandl Aug 9, 2024
ddbab4a
Pure YAML
ralfhandl Aug 9, 2024
91e8577
Fewer commas, formatting, ABNF indentation
ralfhandl Aug 9, 2024
35edf64
Formatting of string value
ralfhandl Aug 9, 2024
439e8eb
Second pattern is problematic
ralfhandl Aug 12, 2024
b12c1b2
Rephrased to avoid contradicting other spec text
ralfhandl Aug 12, 2024
9f1f1eb
Schema Object
ralfhandl Aug 12, 2024
5a27cfd
Discriminator Object
ralfhandl Aug 12, 2024
b4926b4
XML Object
ralfhandl Aug 12, 2024
43039d0
Security
ralfhandl Aug 12, 2024
9a6fa8e
Appendix C
ralfhandl Aug 12, 2024
8f2bb44
Appendix D
ralfhandl Aug 12, 2024
f1bdced
Appendix E
ralfhandl Aug 12, 2024
8a8d9bb
Field instead of attribute
ralfhandl Aug 12, 2024
e284595
Henry's proposal on nullable
ralfhandl Aug 13, 2024
bd5a6d1
Merge pull request #4001 from ralfhandl/3.0.4/nits
ralfhandl Aug 13, 2024
ba72765
Replace "property" with "field" or "keyword"
ralfhandl Aug 15, 2024
3deaba2
Merge pull request #4020 from ralfhandl/3.0.4/property-field-keyword
ralfhandl Aug 15, 2024
bcfe55b
Update 3.0.4.md
ralfhandl Aug 15, 2024
90f052a
Update 3.0.4.md
ralfhandl Aug 16, 2024
2a3605d
Revert integer change
ralfhandl Aug 19, 2024
70fa392
Update 3.0.4.md
ralfhandl Aug 19, 2024
70d3851
Lint 3.0.4.md
ralfhandl Aug 19, 2024
34e9883
Update versions/.markdownlint.yaml
ralfhandl Aug 20, 2024
244b3e2
Update .markdownlint.yaml
ralfhandl Aug 20, 2024
230aefb
Example link to learn site
ralfhandl Aug 20, 2024
1d00ee1
Merge pull request #4031 from ralfhandl/3.0.4/sync-with-3.1.1
miqui Aug 21, 2024
a248f6e
Cleanup
ralfhandl Aug 22, 2024
efab656
format-markdown script
ralfhandl Aug 22, 2024
d9e5f2d
Add .markdownlint.yaml and run script
ralfhandl Aug 22, 2024
fd7fedf
Merge branch '3.0.4-example-link' into v3.0.4-dev-markdownlint
ralfhandl Aug 22, 2024
1632456
Update 3.0.4.md
ralfhandl Aug 22, 2024
4a9ad22
Merge branch 'v3.0.4-dev' into v3.0.4-dev-markdownlint
ralfhandl Aug 22, 2024
b41f4f7
Run prettier
ralfhandl Aug 22, 2024
57a9bc6
Merge pull request #4043 from ralfhandl/3.0.4-example-link
mikekistler Aug 22, 2024
407a9ed
Merge branch 'v3.0.4-dev' into v3.0.4-dev-markdownlint
ralfhandl Aug 22, 2024
5382de7
format-markdown with compact tables
ralfhandl Aug 26, 2024
55e87c3
"Object" def, "with" in titles, fix level
handrews Aug 26, 2024
14f0605
Merge pull request #4050 from handrews/obj-with
ralfhandl Aug 27, 2024
4a8c4ca
bash script for markdown formatting
ralfhandl Aug 27, 2024
59decdf
Update format-markdown.sh
ralfhandl Aug 27, 2024
48f7c69
Merge remote-tracking branch 'upstream/v3.0.4-dev' into v3.0.4-dev-ma…
ralfhandl Aug 27, 2024
adadd56
Port format / integer changes from 3.1.1
handrews Aug 27, 2024
1927438
Merge pull request #4053 from handrews/format-304
ralfhandl Aug 28, 2024
2db3a4a
Use same reference style as #4053
ralfhandl Aug 28, 2024
f7ae729
Merge branch 'v3.0.4-dev' into v3.0.4-dev-markdownlint
ralfhandl Aug 28, 2024
a35b4e9
Update 3.0.4.md
ralfhandl Aug 28, 2024
ccb3b7a
Merge pull request #4054 from ralfhandl/3.0.4-align-references-for-dr…
ralfhandl Aug 28, 2024
c6abcd8
Merge remote-tracking branch 'upstream/v3.0.4-dev' into v3.0.4-dev-ma…
ralfhandl Aug 28, 2024
4f1c33d
Merge pull request #4040 from ralfhandl/v3.0.4-dev-markdownlint
ralfhandl Aug 29, 2024
925879d
Absent, empty, or incomplete security list
ralfhandl Aug 30, 2024
e37f640
SpecRef reference for Draft Wright-00
ralfhandl Aug 30, 2024
b153e13
Merge pull request #4060 from ralfhandl/3.0.4-fix-json-schema-reference
ralfhandl Aug 31, 2024
0056446
Merge pull request #4059 from ralfhandl/3.0.4-omitted-or-empy-security
ralfhandl Sep 2, 2024
4d90c9b
feat(schema): update empty security array constraint
jeremyfiel Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1 # checkout repo content
- uses: actions/setup-node@v1 # setup Node.js
- uses: actions/checkout@v4 # checkout repo content
with:
node-version: '12.x'
fetch-depth: 0
- name: use the javascript environment from main
run: |
git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: '20.x'
- name: Validate markdown
run: npx mdv versions/3.*.md
run: npx --yes mdv versions/3.*.md
- name: Lint markdown v3.0.4
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
target
atlassian-ide-plugin.xml
node_modules/
deploy/
history
Gemfile.lock
16 changes: 16 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Unordered list symbol
MD004:
style: asterisk

# Unordered list indentation
MD007:
indent: 2

MD012: false # allow blank lines

MD013:
line_length: 800
tables: false

MD024: false # duplicate headings
MD033: false # inline HTML
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"Swagger",
"schema",
"API"
]
],
"scripts": {
"format-markdown": "bash ./scripts/format-markdown.sh ./versions/3.0.4.md"
}
}
2 changes: 2 additions & 0 deletions schemas/v3.0/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ properties:
$ref: '#/definitions/Server'
security:
type: array
minItems: 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contradicts what we say now in the spec

items:
$ref: '#/definitions/SecurityRequirement'
tags:
Expand Down Expand Up @@ -553,6 +554,7 @@ definitions:
default: false
security:
type: array
minItems: 1
items:
$ref: '#/definitions/SecurityRequirement'
servers:
Expand Down
15 changes: 15 additions & 0 deletions scripts/format-markdown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

SRCDIR="$(dirname "${BASH_SOURCE[0]}")" # check on Windows

for filename in $*; do
# mostly to format code blocks with examples, unfortunately messes up bullet lists and tables
npx prettier --write --single-quote $filename

# repair the tables: remove superfluos spaces and dashes that make diffing revisions harder
# and sed -i is not portable, so we need to use a temporary file
sed -E -e "s/ +\|/ |/g" -e "s/\| +/| /g" -e "s/-----+/----/g" $filename > $filename.tmp && mv $filename.tmp $filename

# repair the bullet lists and various other markdown formatting issues
npx --yes markdownlint-cli --fix --config $SRCDIR/../.markdownlint.yaml $filename
done
4,335 changes: 4,335 additions & 0 deletions versions/3.0.4.md

Large diffs are not rendered by default.