This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 5ddc92e
authored
v2 documentation improvements (#134)
* Adds top link section in endpoint docs, makes reponses h2
* Adds table of contents
* Moves TOC to h2
* Adds and uses headerSize parameter
* Removes anchorContainsPeriod
* Adjusts request body header size when requestbody is refed
* Updates request body header size for non refed request bodies
* Removes header from request body component module
* Moves code sample to bottom, adds h2 section for authorization, adds to toc
* Adds description and summary sections
* Uses headerSize in parameter docs
* Fixes headerSize in parameter_doc.hbs
* Has header docs use headerSize
* Improves indentation in response bodies
* Adjusts paramter schema depths
* Removes deep headerSize passing in paramter_doc
* dedents schema module in component schema docs
* Flows headerSize into schema docs
* Removes discription when there re no arguments
* Removes auth section if there is no auth
* Uses join for parameter schema docs
* Adds header for each parameter
* Removes redundant data addition
* Header indentation updated in components
* Adds body and header sections to response
* Uses headerSize in response_doc
* Fully uses headerSize in response_doc
* Uses camelCase name in headings for headers and content
* Adds response dscriptions to docs
* Uses headerSize in request body doc
* Adds request body description to docs
* Adds descriptions to responses and request bodies
* Fixes links to ref responses
* Adds parameter and header descriptions
* Adds component schema descriptions
* Increases indentation depth in schema docs
* Reduces composed indentation
* Adds indentation
* All sub lists use numbering
* Removes empty lines from indented schema doc template
* Fixes some tables
* Actually indents subschemas
* Indentation level corrected
* Adds new lines back into schema doc indent template
* Uses headerSize.length in schema_doc_indent
* Removes trailing # from headings in indent
* Adds newline bfore oneOf anyOf allOf Nots
* Removes unneeded deeper indentation
* Adds 1 level of depth to request body schema
* Indents request body schema info under header schema class name
* Improves endpoint response indentation
* Fixes request body links in endpoint docs
* Stops indenting schemas, lists them all at the same level
* Inlines all schemas
* Adds indentation under schema
* Removes RequestBody prefix from request body description
* Removes prefixes from response data
* Moves header summary higher, adds header details removes response prefixes
* Removes prefix from response headers when they are inline
* Adds levels to header docs
* Lists responses after response summary to keep header levels at h6 max
* Removes description prefix from header docs
* Updates parameter descriptions
* Simplifies parameter and header docs
* Simplifies response doc
* Simplies request body doc template
* Simplifies schema doc
* Adds schema writing of anchors with ids containing json path info
* Tweaks schema anchors
* Moves anchor above heading
* Fixes property links
* Fixes required an optional schema docs links
* Adds content type to schema request body section
* Adds newArray and add helpers
* Adds identifierPieces to schema rendering
* Uses identifierPieces
* Generates custom anchor
* Adds anchorPiece
* Uses anchorPiece in anchors
* Sample regen
* Removes manual anchor
* Uses _helper_header_from_identifier_pieces
* Adds Items component schema example
* Adds sample schemas with collisions
* Fixes doc colision in schema property docs
* Simplifies schema doc template
* Updates requestBody doc template
* Simplifies request body docs
* Omits self header prefix in schema and request body docs for inline schemas
* Adjusts when suffix is added to links
* passes in needed identifierPieces into response headers
* Updates header docs
* Adds header content type to schema section in docs
* Updates most of codegen response docs
* Changes content to body
* Fixes template warning by passing in includeSuffix
* Parameter docs updated, parameter docs have needed params
* Adds Schema prefix to component schema h1
* Adds Response prefix to response docs
* Adds prefix to other components
* Adds headers prefix for response header docs
* Adds path to operation docs
* Adds path anchor link
* Adds http method to operation docs
* Operation requestbody heading updated
* Removes template setting of var complexTypePrefix
* Fixes rending of required and optional input type and accessed types for dict keys
* Simplifies dict req and optional input type accessed type template
* Fixes template access warning
* Updates response docs to handle no resonse body schema use case
* response body class updated when no content schemas are defined
* Fixes doc links for self reverences
* moved dict property schema link location in docs
* Adds link to additional properties class in schema docs
* Adds example that shows response body links are working
* Samples regen
* Removes unused templates
* params updated
* sample regen
* Fixes locale invocations1 parent a2d1df1 commit 5ddc92e
1,055 files changed
Lines changed: 44033 additions & 28317 deletions
File tree
- modules/openapi-json-schema-generator/src
- main
- java/org/openapijsonschematools/codegen
- model
- templating
- handlebars
- resources/python
- components
- headers
- parameters
- request_bodies
- responses
- schemas
- paths/path/verb
- test/resources/3_0/python
- samples/openapi3/client
- 3_0_3_unit_test/python
- docs
- apis/tags
- _not_api
- additional_properties_api
- all_of_api
- any_of_api
- content_type_json_api
- default_api
- enum_api
- format_api
- items_api
- max_items_api
- max_length_api
- max_properties_api
- maximum_api
- min_items_api
- min_length_api
- min_properties_api
- minimum_api
- multiple_of_api
- one_of_api
- operation_request_body_api
- path_post_api
- pattern_api
- properties_api
- ref_api
- required_api
- response_content_content_type_schema_api
- type_api
- unique_items_api
- components/schema
- features/nonCompliantUseDiscriminatorIfCompositionFails/python
- docs
- apis/tags/default_api
- components/schema
- petstore/python
- .openapi-generator
- docs
- apis/tags
- another_fake_api
- default_api
- fake_api
- fake_classname_tags123_api
- pet_api
- store_api
- user_api
- components
- headers
- parameters
- request_bodies
- responses
- schema
- src/petstore_api
- apis
- paths
- tags
- components
- schemas
- schema
- paths
- fake_multiple_response_bodies
- get
- responses
- response_200
- content
- application_json
- response_202
- content
- application_json
- fake_response_without_schema/get/responses/response_200
- test
- components/schema
- test_paths/test_fake_multiple_response_bodies
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2569 | 2569 | | |
2570 | 2570 | | |
2571 | 2571 | | |
| 2572 | + | |
| 2573 | + | |
2572 | 2574 | | |
2573 | 2575 | | |
2574 | 2576 | | |
2575 | 2577 | | |
2576 | | - | |
| 2578 | + | |
| 2579 | + | |
2577 | 2580 | | |
2578 | 2581 | | |
2579 | 2582 | | |
| |||
2634 | 2637 | | |
2635 | 2638 | | |
2636 | 2639 | | |
| 2640 | + | |
| 2641 | + | |
2637 | 2642 | | |
2638 | 2643 | | |
2639 | 2644 | | |
2640 | 2645 | | |
2641 | | - | |
| 2646 | + | |
| 2647 | + | |
2642 | 2648 | | |
2643 | 2649 | | |
2644 | 2650 | | |
| |||
2809 | 2815 | | |
2810 | 2816 | | |
2811 | 2817 | | |
2812 | | - | |
| 2818 | + | |
| 2819 | + | |
2813 | 2820 | | |
2814 | 2821 | | |
2815 | 2822 | | |
2816 | 2823 | | |
2817 | | - | |
| 2824 | + | |
| 2825 | + | |
2818 | 2826 | | |
2819 | 2827 | | |
2820 | 2828 | | |
| |||
4522 | 4530 | | |
4523 | 4531 | | |
4524 | 4532 | | |
| 4533 | + | |
4525 | 4534 | | |
4526 | 4535 | | |
4527 | 4536 | | |
| |||
4544 | 4553 | | |
4545 | 4554 | | |
4546 | 4555 | | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
4547 | 4559 | | |
4548 | 4560 | | |
4549 | 4561 | | |
4550 | 4562 | | |
4551 | | - | |
| 4563 | + | |
| 4564 | + | |
4552 | 4565 | | |
4553 | 4566 | | |
4554 | 4567 | | |
4555 | 4568 | | |
4556 | 4569 | | |
4557 | 4570 | | |
| 4571 | + | |
| 4572 | + | |
4558 | 4573 | | |
4559 | 4574 | | |
4560 | 4575 | | |
4561 | 4576 | | |
4562 | | - | |
| 4577 | + | |
| 4578 | + | |
4563 | 4579 | | |
4564 | 4580 | | |
4565 | 4581 | | |
| |||
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
| 576 | + | |
575 | 577 | | |
576 | 578 | | |
577 | 579 | | |
578 | 580 | | |
579 | | - | |
580 | | - | |
| 581 | + | |
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
585 | 590 | | |
586 | 591 | | |
587 | 592 | | |
| |||
800 | 805 | | |
801 | 806 | | |
802 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
803 | 811 | | |
804 | 812 | | |
805 | 813 | | |
| |||
821 | 829 | | |
822 | 830 | | |
823 | 831 | | |
824 | | - | |
825 | 832 | | |
826 | 833 | | |
827 | 834 | | |
| |||
852 | 859 | | |
853 | 860 | | |
854 | 861 | | |
855 | | - | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
856 | 866 | | |
857 | 867 | | |
858 | 868 | | |
| |||
862 | 872 | | |
863 | 873 | | |
864 | 874 | | |
865 | | - | |
| 875 | + | |
866 | 876 | | |
867 | 877 | | |
868 | 878 | | |
| |||
962 | 972 | | |
963 | 973 | | |
964 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
965 | 978 | | |
966 | 979 | | |
967 | 980 | | |
| |||
1066 | 1079 | | |
1067 | 1080 | | |
1068 | 1081 | | |
| 1082 | + | |
1069 | 1083 | | |
1070 | 1084 | | |
1071 | 1085 | | |
| |||
1075 | 1089 | | |
1076 | 1090 | | |
1077 | 1091 | | |
| 1092 | + | |
1078 | 1093 | | |
1079 | 1094 | | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1080 | 1098 | | |
1081 | 1099 | | |
1082 | 1100 | | |
| |||
1161 | 1179 | | |
1162 | 1180 | | |
1163 | 1181 | | |
| 1182 | + | |
| 1183 | + | |
1164 | 1184 | | |
1165 | 1185 | | |
1166 | 1186 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
44 | 79 | | |
45 | 80 | | |
46 | 81 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments