docusaurus-theme-openapi-docs 0.0.0-beta.670 → 0.0.0-beta.672

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,7 +202,10 @@ function Body({
202
202
  let defaultBody = ""; //"body content";
203
203
  let exampleBody;
204
204
  let examplesBodies = [];
205
- if (contentType === "application/json" || contentType.endsWith("+json")) {
205
+ if (
206
+ contentType.includes("application/json") ||
207
+ contentType.endsWith("+json")
208
+ ) {
206
209
  if (jsonRequestBodyExample) {
207
210
  defaultBody = JSON.stringify(jsonRequestBodyExample, null, 2);
208
211
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "0.0.0-beta.670",
4
+ "version": "0.0.0-beta.672",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -43,7 +43,7 @@
43
43
  "clsx": "^1.1.1",
44
44
  "copy-text-to-clipboard": "^3.1.0",
45
45
  "crypto-js": "^4.1.1",
46
- "docusaurus-plugin-openapi-docs": "0.0.0-beta.670",
46
+ "docusaurus-plugin-openapi-docs": "0.0.0-beta.672",
47
47
  "docusaurus-plugin-sass": "^0.2.3",
48
48
  "file-saver": "^2.0.5",
49
49
  "lodash": "^4.17.20",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "027a734f68092976b1e49ba8475b4f9a0909db67"
71
+ "gitHead": "7a6cdc1a2a7d2a01bd1ca473a4d1bbc7952ac808"
72
72
  }
@@ -114,7 +114,6 @@ function Body({
114
114
  </FormItem>
115
115
  );
116
116
  }
117
-
118
117
  if (
119
118
  (contentType === "multipart/form-data" ||
120
119
  contentType === "application/x-www-form-urlencoded") &&
@@ -221,7 +220,10 @@ function Body({
221
220
  let exampleBody;
222
221
  let examplesBodies = [] as any;
223
222
 
224
- if (contentType === "application/json" || contentType.endsWith("+json")) {
223
+ if (
224
+ contentType.includes("application/json") ||
225
+ contentType.endsWith("+json")
226
+ ) {
225
227
  if (jsonRequestBodyExample) {
226
228
  defaultBody = JSON.stringify(jsonRequestBodyExample, null, 2);
227
229
  }