Skip to content

v3.1.1(schema): update empty security array constraint #4070

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
fb0955f
Settle on "OpenAPI Description" (3.1.1) (#3385)
handrews Sep 28, 2023
26fe1eb
Describe OpenAPI entry point in OpenAPI description docs
duncanbeevers Sep 28, 2023
a441078
fixup! Describe OpenAPI entry point in OpenAPI description docs
duncanbeevers Sep 28, 2023
1eacb1b
comma fix, same as #3375 (#3376)
karenetheridge Oct 5, 2023
4f7683b
the chart in section 4.8.12.4 shows that primitive and object types a…
karenetheridge Sep 24, 2023
1d630fe
Generalize description of password data type
mgrafl Oct 21, 2023
84d9197
switch the order of these styles in the tables
karenetheridge Sep 22, 2023
55268a6
extra keywords in the reference object are permitted
karenetheridge Oct 23, 2023
e48bf46
Merge pull request #3380 from karenetheridge/ether/types-for-simple-s…
earth2marsh Nov 30, 2023
25e1fe1
Merge branch 'v3.1.1-dev' into ether/reorder-styles-v3.1.1
earth2marsh Dec 7, 2023
50e6025
Merge pull request #3398 from karenetheridge/ether/reorder-styles-v3.1.1
earth2marsh Dec 7, 2023
fba5808
Merge pull request #3417 from karenetheridge/ether/v3.1.1-ref-object-…
earth2marsh Dec 7, 2023
53c6a61
Include suggestion from review
mgrafl Jan 4, 2024
659ce3d
fix the validate-markdown issue
mgrafl Jan 18, 2024
3675b04
Suggestion from review
mgrafl Jan 27, 2024
529a197
Update versions/3.1.1.md
darrelmiller Feb 1, 2024
f407f8c
fence braces with backticks
earth2marsh Feb 1, 2024
ea440c5
Merge pull request #3233 from commonism/contentEncoding311
earth2marsh Feb 1, 2024
4911891
wordsmithing
earth2marsh Feb 1, 2024
1c848b2
Merge pull request #3387 from duncanbeevers/docs/split-identity-and-c…
earth2marsh Feb 1, 2024
03b43e1
Sync validate-markdown workflow with main (3.1.1) (#3559)
handrews Feb 15, 2024
679d729
whitespace and quoting fixes in json and yaml examples
karenetheridge Dec 6, 2023
7fa51a4
Merge pull request #3413 from mgrafl/patch-1
earth2marsh Feb 21, 2024
fe4cc73
Merge pull request #3465 from karenetheridge/ether/whitespace-example…
earth2marsh Feb 22, 2024
6ea52f2
Apply suggestions from code review
jdesrosiers Mar 21, 2024
eb5ddee
Remove anything deemed controversial
jdesrosiers Mar 21, 2024
92bf2b4
small typo fix
karenetheridge Mar 23, 2024
2d940c5
Update versions/3.1.1.md
jdesrosiers Mar 25, 2024
22aef73
Merge pull request #3674 from karenetheridge/ether/path-item-objects-…
lornajane Mar 28, 2024
32fd487
Merge pull request #2618 from jdesrosiers/311-discriminator-fixes
lornajane Apr 4, 2024
6672b3c
Update Spec for Style Values
charjr Mar 28, 2024
0d6aa17
Move Mutual TLS example from 3.1.0 to 3.1.1 to prepare for patch release
lornajane Apr 7, 2024
580441a
Merge pull request #3696 from lornajane/move-mutual-tls-sample
earth2marsh Apr 11, 2024
5a6b6cc
path.id is not a url
Bellangelo Apr 15, 2024
7ce6f88
Merge pull request #3684 from charjr/update-style-docs
lornajane Apr 17, 2024
84815b5
Merge pull request #3707 from Bellangelo/3.1.x-path.id-is-not-a-url
lornajane Apr 18, 2024
3cff10a
Explain that dynamic refs can implement generics
handrews Mar 20, 2024
9c07b82
Fix typo (review feedback)
handrews Apr 19, 2024
d71520a
Clarify openIdConnectUrl #3630
m-mohr Apr 19, 2024
ceadbe1
Be more clear about `format` support
handrews Apr 20, 2024
e62f218
Clarify how to model binary data in 3.1
handrews Mar 22, 2023
1b0ce70
Review fixes from gregsdennis
handrews Apr 20, 2024
814e0d5
Limit interoperable parsing expectations
handrews Apr 21, 2024
dd8c0aa
Add an example of non-interoperable parsing
handrews Apr 21, 2024
e2dd78c
Fix header level for new section
handrews Apr 22, 2024
0f800d5
Link format vocabularies to JSON Schema spec sections
handrews Apr 22, 2024
f6c0406
Link to more info on dynamic refs for generics
handrews Apr 22, 2024
25d82a1
wording improvements from review
handrews Apr 23, 2024
c48dd1a
More minimal wording regarding "format" validation.
handrews Apr 24, 2024
8170d77
fix style=form examples
karenetheridge Apr 25, 2024
7b01059
Update versions/3.1.1.md
handrews Apr 25, 2024
d847c3b
Update versions/3.1.1.md
handrews Apr 25, 2024
333c51f
Update versions/3.1.1.md
handrews Apr 25, 2024
ff9bbdb
Update versions/3.1.1.md
handrews Apr 25, 2024
ea38588
Substantially better wording from ralfhandl in review comments
handrews Apr 25, 2024
6d1ca8e
Merge pull request #3732 from handrews/multi-parse
lornajane Apr 25, 2024
ddbd53f
Merge pull request #3726 from handrews/format-vocab
lornajane Apr 25, 2024
d2f194e
Correctly escape example operationRef URLs (3.1.1)
handrews Apr 25, 2024
8ca6bba
Update versions/3.1.1.md
m-mohr Apr 25, 2024
37f5b65
Non-string discriminator values (3.1.1)
handrews Apr 25, 2024
e4bd641
Clarify wording on encoding field (3.1.1)
handrews Apr 25, 2024
c7f4b9b
Update versions/3.1.1.md
ralfhandl Apr 26, 2024
d929309
Clarify spaceDelimited with spaces in values (3.1.1)
handrews Apr 26, 2024
9da10c5
Clarify how Schema Objs require full-doc parsing
handrews Apr 26, 2024
0b0564f
Update versions/3.1.1.md
m-mohr Apr 27, 2024
def8f41
Explain lack of HTTP header for base64 encoding
handrews Apr 27, 2024
8de5a93
Fix stray "format: byte" to use contentEncoding
handrews Apr 27, 2024
5e48c67
Merge pull request #3727 from handrews/encodings
miqui Apr 28, 2024
88b199d
Merge pull request #3718 from m-mohr/patch-2
lornajane May 1, 2024
2ad9ff9
Merge pull request #3747 from handrews/curly-braces-311
lornajane May 1, 2024
524a7f4
Merge pull request #3751 from handrews/disc-strings-311
lornajane May 1, 2024
9dbfbe1
Merge pull request #3754 from handrews/space-delim-311
lornajane May 1, 2024
324c8f1
Merge pull request #3756 from handrews/param-content-311
lornajane May 1, 2024
920a8f9
Explain default Encoding Object behavior (3.1.1)
handrews May 1, 2024
afe8bb2
Clarify how to model streaming binary data (3.1.1)
handrews May 1, 2024
62e91a6
Merge pull request #3741 from karenetheridge/ether/style-examples-3.1.1
ralfhandl May 2, 2024
3f60c51
Add advice to OAD authors related to doc parsing
handrews May 2, 2024
ffe0434
Rework the guidance around fragmentary parsing.
handrews May 3, 2024
226ab2b
Sync .gitignore with main
ralfhandl May 7, 2024
ca3f2d7
Don't ignore package-lock.json
ralfhandl May 8, 2024
10dd761
Merge pull request #3788 from OAI/fix/3.1.1/gitignore
handrews May 8, 2024
46a8ca3
Merge pull request #3767 from handrews/def-enc-311
ralfhandl May 9, 2024
8c6c0dd
Merge pull request #3769 from handrews/streaming-binary-311
ralfhandl May 9, 2024
a602c46
Merge pull request #3714 from handrews/generics
lornajane May 9, 2024
cf6def1
Clarify constraints on Param Obj fields (3.1.1)
handrews May 9, 2024
856a1c2
Fix typo (review feedback)
handrews May 10, 2024
78d39a1
Merge pull request #3796 from handrews/param-fields-311
ralfhandl May 14, 2024
05f49ef
Merge pull request #3758 from handrews/docparse
ralfhandl May 14, 2024
68838a3
Define "undefined" and "implementation-defined" (3.1.1)
handrews May 3, 2024
baab867
Review feedback from notEthan and ralfhandl
handrews May 8, 2024
46228b7
Merge pull request #3805 from handrews/undef-impdef-311
handrews May 16, 2024
a8b34a3
Upport of #3801
ralfhandl May 17, 2024
5dfa98a
Clarify allowEmptyValue -> disregard empty values (3.1.1)
handrews May 16, 2024
14ca078
Clarify "URI" and "URL" usage
handrews May 22, 2024
feb0e67
Fix typo (review feedback)
handrews May 22, 2024
a1a4468
Clarify entry/complete document terminology (3.1.1)
handrews May 19, 2024
1cb9b9b
Remove CommonMark URI bit for now
handrews May 22, 2024
6b70d6d
Merge pull request #3816 from ralfhandl/3.1.1/link-for-case-insensiti…
miqui May 23, 2024
085ad6b
Merge pull request #3839 from handrews/entry-again-311
lornajane May 23, 2024
d94d13f
Merge pull request #3835 from handrews/disregard-empty-311
lornajane May 23, 2024
52bdba7
Clarify discriminator + oneOf/anyOf/allOf usage (3.1.1)
handrews May 19, 2024
3f8a9e3
Path Item $ref change warning (3.1.1)
handrews May 27, 2024
7eb71ad
Fix confusing usage of "WebHook"
handrews May 27, 2024
0c5bd00
Replace deprecated example with examples in schema
handrews May 27, 2024
ecffb1e
Make Reference Object a link (review feedback)
handrews May 28, 2024
5bbea46
Fix typos on webook(s) link
handrews May 28, 2024
dd44da9
Use "discriminating value" consistently
handrews May 31, 2024
7ca63b5
Merge pull request #3846 from handrews/disc-of-311
miqui Jun 4, 2024
fc11301
Fix incorrect OpenIDConnect discovery url
shilpa-padgaonkar Feb 24, 2024
c034f86
changed ref and url -Update 3.1.1.md
shilpa-padgaonkar Mar 4, 2024
eb62785
Clarify Link Obj parameters as best we can (3.1.1)
handrews May 24, 2024
f9923f9
Merge pull request #3881 from handrews/shilpa-fix-openid-311
miqui Jun 6, 2024
d5c3c59
Merge pull request #3883 from handrews/link-param-311
miqui Jun 6, 2024
5d5669e
Merge pull request #3838 from handrews/ref-uriurl-311
lornajane Jun 6, 2024
54b4d1b
Merge branch 'v3.1.1-dev' into path-item-ref-311
handrews Jun 6, 2024
6f8a0d7
Merge pull request #3860 from handrews/path-item-ref-311
ralfhandl Jun 6, 2024
cea84c8
Resolution of relative URLs in CommonMark text (3.1.1)
handrews May 26, 2024
1ac1025
wording suggestion (review feedback)
handrews May 27, 2024
5ac50b3
Consolidate guidance around examples (3.1.1) (#3893)
handrews Jun 9, 2024
258e85d
Merge pull request #3895 from handrews/examples-311
ralfhandl Jun 10, 2024
ba0e420
Merge pull request #3892 from handrews/markdown-uris-311
ralfhandl Jun 10, 2024
cad29a6
Merge pull request #3862 from handrews/editorial-311
ralfhandl Jun 10, 2024
8c59f66
Stub out appendix headers (3.1.1)
handrews Jun 10, 2024
29c3a72
Merge pull request #3898 from handrews/stub-headers-311
handrews Jun 10, 2024
a0613f8
Clarify resolving implicit connections (3.1.1)
handrews May 2, 2024
d202870
wording review feedback
handrews May 28, 2024
23ea547
Apply suggestions from code review
handrews Jun 8, 2024
b42fa95
More review feedback.
handrews Jun 8, 2024
59148a2
Add example resolution of Security Requirement
handrews Jun 11, 2024
73d3d33
Fix stray random characters (review feedback)
handrews Jun 11, 2024
f530750
example as YAML/JSON via HTTP negotiation
handrews Jun 11, 2024
0555074
Formatting fix (review feedback)
handrews Jun 11, 2024
d2b0fe9
Apply suggestions from code review
handrews Jun 12, 2024
e5b92d0
Merge pull request #3856 from handrews/implicit-alt-311
lornajane Jun 13, 2024
fe9c31e
More guidance on schema dialects.
handrews Jun 13, 2024
0da2060
Better wording (review feedback)
handrews Jun 17, 2024
324f2c5
Better explanation of "false" vocabularies
handrews Jun 17, 2024
f4c3484
Merge pull request #3909 from handrews/dialect-311
handrews Jun 18, 2024
b085351
Verbose Header Object documentation (3.1.1 port of 3867 1/2, 3904)
handrews May 30, 2024
1d59340
Better wording (3.1.1 port of 3867 2/2)
handrews Jun 4, 2024
d9b2707
Improve media type encoding examples (3.1.1 port of 3864)
handrews May 28, 2024
f19ecea
Clarications on RFC6570-derived behavior (3.1.1 port of 3818)
handrews May 7, 2024
0adeccd
Fix stray mentions of parameters (3.1.1 port of 3911 1/2)
handrews Jun 14, 2024
707a25d
Appendix on converting data types to strings (3.1.1 port of 3840)
handrews May 22, 2024
605d329
Warnings for header and cookie serialization (3.1.1 port of 3841)
handrews May 23, 2024
21af3bb
Add Security Considerations (3.1.1 port of 3894)
handrews Jun 9, 2024
9f2997a
Link to the Learn and Spec sites (3.1.1 port of 3861 1/11)
handrews May 27, 2024
a3ce61a
Clarify "Schema" (3.1.1 port of 3861 2/11)
handrews May 27, 2024
35974ac
Global HTTP case-(in)sensitivity rule (3.1.1 port of 3861 3/11)
handrews May 27, 2024
d95ed15
Improved description of XML examples (3.1.1 port of 3861 4/11)
handrews May 27, 2024
35adc6e
Clarify CommonMark extensibility. (3.1.1 port of 3861 5/11)
handrews May 27, 2024
6bb4cf4
Add description to the Example Object (3.1.1 port of 3861 6/11)
handrews May 27, 2024
1da61dd
Mention the format registry in the data types section (3.1.1 port of …
handrews Jun 3, 2024
c378984
Note extension registry in extensions section. (3.1.1 port of 3861 8/11)
handrews Jun 4, 2024
2846e7e
Warn of interop issues w/Markdown extensions (3.1.1 port of 3861 9/11)
handrews Jun 5, 2024
1cb9007
Clarify version (Info Object) further (3.1.1 port of 3861 10/11)
handrews Jun 5, 2024
8423a9e
Clarify confusing use of YAML "JSON Schema" (3.1.1 port of 3861 11/11)
handrews Jun 8, 2024
95737d2
Encoding Object content and header clarifications (3.1.1 port of 3857…
handrews May 25, 2024
2d5f229
Reword default handling (3.1.1 port of 3857 2/4)
handrews Jun 5, 2024
f1e04f1
Split up Encoding fields like Param/Header (3.1.1 port of 3857 3/4)
handrews Jun 10, 2024
137dfcb
Discuss null values and contentType (3.1.1 port of 3857 4/4)
handrews Jun 11, 2024
9ac976a
Appendix for percent-encoding concerns (3.1.1 port of 3859 1/3)
handrews May 25, 2024
2e79a54
Further clarify style+explode examples (3.1.1 port of 3859 2/3)
handrews Jun 8, 2024
fe71ea3
Update Header for changes to copied fields (3.1.1 port of 3859 3/3, 3…
handrews Jun 10, 2024
6b63580
Include Header Object in data serialization list (3.1.1 port of 3917)
handrews Jun 15, 2024
4c59363
Fix XML namespace syntax (3.1.1 port of 3905)
handrews Jun 9, 2024
56042d7
Clarify discriminator non-impact on validation (3.1.1 port of 3907)
handrews Jun 13, 2024
0332c77
Consisent x- Param/Encoding/Header wording (3.1.1 port of 3919)
handrews Jun 17, 2024
9739dfe
Minor editiorial and link target fixes (3.1.1 port of 3920)
handrews Jun 15, 2024
f4c2f93
Remove 3.0-specific encoding guidance (3.1.1 adjustment to 3857)
handrews Jun 15, 2024
70df1b3
Note RFC6570 issues with form-data (3.1.1 add-on to 3818)
handrews Jun 15, 2024
49d542d
Note issues with encoding form-data (3.1.1 add-on to 3857)
handrews Jun 15, 2024
31d23da
Migrate 3.0 format guidance to content* (3.1.1 port add-on)
handrews Jun 15, 2024
4fb5225
Fix version of JSON Schema cited in change ported from 3.0.4
handrews Jun 20, 2024
5e8a41b
Fix mention of versions in ported text from 3.0.4
handrews Jun 20, 2024
909091f
Merge pull request #3921 from handrews/port-2-311
handrews Jun 21, 2024
c29425a
Use document/description/definition consistently (3.1.1 port of 3908)
handrews Jun 13, 2024
6a24378
Fix typos (3.1.1 port of 3924)
ralfhandl Jun 20, 2024
df3eeb6
Authoritative rendering; "schema" usage (3.1.1 port of 3927)
handrews Jun 21, 2024
f904352
Merge pull request #3926 from handrews/port-more-311
miqui Jun 23, 2024
34cc0cb
Start consolidating media / encoding guidance (3.1.1 port of 3923 1/6)
handrews Jun 20, 2024
9e07940
Add section titles, fix levels (3.1.1 port of 3923 2/6)
handrews Jun 19, 2024
1371a93
Consolidating form guidance: Media Type Object (3.1.1 port of 3923 3/6)
handrews Jun 19, 2024
4c988a2
Re-organize form-urlencoded guidance (3.1.1 port of 3923 4/6)
handrews Jun 20, 2024
f6c2164
Fix base64 encoding example for URL quoting (3.1.1 port of 2923 5/6)
handrews Jun 20, 2024
f913074
Reorganize multipart/form-data guidance (3.1.1 port of 3923 6/6, 3929)
handrews Jun 20, 2024
75abe34
Review feedback clarifications- binary encoding
handrews Jul 9, 2024
10308db
Merge pull request #3937 from handrews/multipart-311
whitlockjc Jul 11, 2024
c0be5ec
Editorial improvements from 3.0.4
ralfhandl Jul 12, 2024
be16865
Add links, remove confusing sentence
ralfhandl Jul 22, 2024
ef319b2
Merge pull request #3953 from ralfhandl/v3.1.1/sync-with-3.0.4
ralfhandl Jul 23, 2024
01b0745
Formatting improvements
ralfhandl Jul 23, 2024
4a1b95e
Merge pull request #3969 from ralfhandl/3.1.1/formatting
miqui Jul 25, 2024
0a92fa6
Run prettier to format the markdown
lornajane Aug 1, 2024
32657fd
Run and fix all markdownlint output
lornajane Aug 1, 2024
057f1da
Update/rewrite all anchors and internal links
lornajane Aug 1, 2024
c5a0fa6
Remove table of contents, the new tools don't need it
lornajane Aug 1, 2024
c4e920e
Add base vocab anchor and link
lornajane Aug 5, 2024
521cc2d
Fix a mis-cased internal link
lornajane Aug 5, 2024
24a0b1b
Another mis-cased link
lornajane Aug 5, 2024
892f7b7
Merge pull request #3991 from lornajane/fix-markdown-3-1-1
ralfhandl Aug 5, 2024
562befa
Improved links
ralfhandl Aug 5, 2024
5c2368c
Consistent formatting
ralfhandl Aug 5, 2024
2389c8c
Improved request-response example
ralfhandl Aug 5, 2024
1a32433
Inconsistent monospace
ralfhandl Aug 5, 2024
c2fc43a
Update 3.1.1.md
ralfhandl Aug 7, 2024
b4394d5
Revert "Update 3.1.1.md"
ralfhandl Aug 7, 2024
c304e2f
Merge pull request #3996 from ralfhandl/3.1.1/improved-references
ralfhandl Aug 8, 2024
261e67c
Merge pull request #3998 from ralfhandl/3.1.1/consistent-formatting
lornajane Aug 8, 2024
81df7bd
3.1.1 minor nits
ralfhandl Aug 13, 2024
84ebede
Update 3.1.1.md
ralfhandl Aug 13, 2024
b016683
Merge pull request #4014 from ralfhandl/3.1.1/minor-nits
ralfhandl Aug 14, 2024
5f87055
field, keyword, property
ralfhandl Aug 15, 2024
6455253
Update 3.1.1.md
ralfhandl Aug 16, 2024
3488035
Update 3.1.1.md
ralfhandl Aug 16, 2024
735f3ef
Revert integer change
ralfhandl Aug 19, 2024
c7920cc
Lint 3.0.4.md
ralfhandl Aug 19, 2024
15b4847
Update .markdownlint.yaml
ralfhandl Aug 20, 2024
a4b8119
Examples on learn site
ralfhandl Aug 20, 2024
99b0fd8
Clarify data model types and formats
handrews Aug 20, 2024
c589651
Use older JSON spec consistently.
handrews Aug 21, 2024
0c95ec5
Cleanup
ralfhandl Aug 22, 2024
7b77bec
Update package.json
ralfhandl Aug 22, 2024
d37c58e
Create .markdownlint.yaml
ralfhandl Aug 22, 2024
898949f
Improve table, make section for formats
handrews Aug 22, 2024
6460549
Merge pull request #4032 from ralfhandl/3.1.1/property-field-keyword
lornajane Aug 22, 2024
16ab5f8
Merge pull request #4044 from ralfhandl/3.1.1-example-links
ralfhandl Aug 22, 2024
2bc4e48
Merge branch 'v3.1.1-dev' into pr/4045
ralfhandl Aug 22, 2024
4b8378a
Sync with registry.
handrews Aug 22, 2024
1c8f451
Use "JSON data types" consistently where relevant.
handrews Aug 22, 2024
0b94cf5
More tweaks about integers.
handrews Aug 23, 2024
4573bd7
Merge pull request #4041 from ralfhandl/v3.1.1-dev-markdownlint
ralfhandl Aug 26, 2024
151f316
Clarifications from mikekistler on OAS data type vs JSON schema kwd/f…
handrews Aug 26, 2024
8f626a5
Update versions/3.1.1.md
ralfhandl Aug 27, 2024
f0ebca0
Merge pull request #4045 from handrews/format
ralfhandl Aug 27, 2024
2f547da
"Object" def, "with" in titles, fix level
handrews Aug 26, 2024
fdace9f
Fix two capital-O Objects
handrews Aug 27, 2024
8d677fe
Merge pull request #4052 from handrews/obj-with-311
ralfhandl Aug 28, 2024
6236411
Additional example for "raw JSON"
ralfhandl Aug 28, 2024
cb6c315
Prevent line-breaks in code
ralfhandl Aug 28, 2024
32be102
Feedback from @handrews
ralfhandl Aug 28, 2024
d7eb0d4
Merge pull request #4055 from ralfhandl/3.1.1-example-for-raw-JSON-as…
ralfhandl Aug 29, 2024
58067fb
3.1.1 port of #4040
ralfhandl Aug 29, 2024
45b8742
Merge pull request #4056 from ralfhandl/3.1.1-table-cleanup
lornajane Aug 29, 2024
e0b2012
Different JSON Schema also affects 3.0
ralfhandl Aug 30, 2024
1802a9e
Update 3.1.1.md
ralfhandl Aug 30, 2024
c365f86
Merge pull request #4061 from ralfhandl/3.1.1-file-upload
ralfhandl Aug 31, 2024
48f37a7
3.1.1: absent, empty, or incomplete security list
ralfhandl Sep 2, 2024
4b4df2f
Merge pull request #4064 from ralfhandl/3.1.1-omitted-or-empty-security
ralfhandl Sep 3, 2024
c7d6fc9
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.1.1
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.1.1.md

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
target
atlassian-ide-plugin.xml
node_modules/
package-lock.json
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 @@ -31,5 +31,8 @@
"Swagger",
"schema",
"API"
]
],
"scripts": {
"format-markdown": "bash ./scripts/format-markdown.sh ./versions/3.1.1.md"
}
}
3 changes: 1 addition & 2 deletions schemas/v3.1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,7 @@
"description": {
"type": "string"
}
},
"unevaluatedProperties": false
}
},
"schema": {
"$dynamicAnchor": "meta",
Expand Down
3 changes: 2 additions & 1 deletion schemas/v3.1/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
$ref: '#/$defs/components'
security:
type: array
minItems: 1
items:
$ref: '#/$defs/security-requirement'
tags:
Expand Down Expand Up @@ -253,6 +254,7 @@ $defs:
type: boolean
security:
type: array
minItems: 1
items:
$ref: '#/$defs/security-requirement'
servers:
Expand Down Expand Up @@ -684,7 +686,6 @@ $defs:
type: string
description:
type: string
unevaluatedProperties: false

schema:
$dynamicAnchor: meta
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
18 changes: 16 additions & 2 deletions versions/3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown

Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-4.2).

Relative references, including those in [`Reference Objects`](#referenceObject), [`PathItem Object`](#pathItemObject) `$ref` fields, [`Link Object`](#linkObject) `operationRef` fields and [`Example Object`](#exampleObject) `externalValue` fields, are resolved using the referring document as the Base URI according to [RFC3986](https://tools.ietf.org/html/rfc3986#section-5.2).
Relative references, including those in [`Reference Objects`](#referenceObject), [`Path Item Object`](#pathItemObject) `$ref` fields, [`Link Object`](#linkObject) `operationRef` fields and [`Example Object`](#exampleObject) `externalValue` fields, are resolved using the referring document as the Base URI according to [RFC3986](https://tools.ietf.org/html/rfc3986#section-5.2).

If a URI contains a fragment identifier, then the fragment should be resolved per the fragment resolution mechanism of the referenced document. If the representation of the referenced document is JSON or YAML, then the fragment identifier SHOULD be interpreted as a JSON-Pointer as per [RFC6901](https://tools.ietf.org/html/rfc6901).

Expand Down Expand Up @@ -195,7 +195,7 @@ Field Name | Type | Description
<a name="oasJsonSchemaDialect"></a> jsonSchemaDialect | `string` | The default value for the `$schema` keyword within [Schema Objects](#schemaObject) contained within this OAS document. This MUST be in the form of a URI.
<a name="oasServers"></a>servers | [[Server Object](#serverObject)] | An array of Server Objects, which provide connectivity information to a target server. If the `servers` property is not provided, or is an empty array, the default value would be a [Server Object](#serverObject) with a [url](#serverUrl) value of `/`.
<a name="oasPaths"></a>paths | [Paths Object](#pathsObject) | The available paths and operations for the API.
<a name="oasWebhooks"></a>webhooks | Map[`string`, [Path Item Object](#pathItemObject) \| [Reference Object](#referenceObject)] ] | The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the `callbacks` feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An [example](../examples/v3.1/webhook-example.yaml) is available.
<a name="oasWebhooks"></a>webhooks | Map[`string`, [Path Item Object](#pathItemObject) \| [Reference Object](#referenceObject)] | The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the `callbacks` feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An [example](../examples/v3.1/webhook-example.yaml) is available.
<a name="oasComponents"></a>components | [Components Object](#componentsObject) | An element to hold various schemas for the document.
<a name="oasSecurity"></a>security | [[Security Requirement Object](#securityRequirementObject)] | A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement (`{}`) can be included in the array.
<a name="oasTags"></a>tags | [[Tag Object](#tagObject)] | A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the [Operation Object](#operationObject) must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
Expand Down Expand Up @@ -3253,6 +3253,20 @@ scheme: bearer
bearerFormat: JWT
```

###### MutualTLS Sample

```json
{
"type": "mutualTLS",
"description": "Cert must be signed by example.com CA"
}
```

```yaml
type: mutualTLS
description: Cert must be signed by example.com CA
```

###### Implicit OAuth2 Sample

```json
Expand Down
Loading