Commit 31d36c1
authored
Avoid falling back to MOD label when rendering oneOf/anyOf and title not defined (#455)
* Add preprocessing step to inject title attribute to component schema if none exists
* Add CloudAccounts for testing
* Remove CloudAccounts from demo
* Remove title attribute from components schemas
* Revert back to petstore1 parent d9429c7 commit 31d36c1
2 files changed
Lines changed: 15 additions & 5 deletions
File tree
- demo/examples
- packages/docusaurus-plugin-openapi-docs/src/openapi/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
937 | 936 | | |
938 | 937 | | |
939 | 938 | | |
| |||
972 | 971 | | |
973 | 972 | | |
974 | 973 | | |
975 | | - | |
976 | 974 | | |
977 | 975 | | |
978 | 976 | | |
| |||
987 | 985 | | |
988 | 986 | | |
989 | 987 | | |
990 | | - | |
991 | 988 | | |
992 | 989 | | |
993 | 990 | | |
| |||
1043 | 1040 | | |
1044 | 1041 | | |
1045 | 1042 | | |
1046 | | - | |
1047 | 1043 | | |
1048 | 1044 | | |
1049 | 1045 | | |
| |||
1110 | 1106 | | |
1111 | 1107 | | |
1112 | 1108 | | |
1113 | | - | |
1114 | 1109 | | |
1115 | 1110 | | |
1116 | 1111 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
131 | 146 | | |
132 | 147 | | |
133 | 148 | | |
| |||
0 commit comments