docusaurus-plugin-openapi-docs 2.1.0 → 2.1.1

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.
@@ -17,7 +17,7 @@ function create(tag, props) {
17
17
  }
18
18
  exports.create = create;
19
19
  function guard(value, cb) {
20
- if (!!value) {
20
+ if (!!value || value === 0) {
21
21
  const children = cb(value);
22
22
  return render(children);
23
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -36,13 +36,13 @@
36
36
  "@types/mustache": "^4.1.2"
37
37
  },
38
38
  "dependencies": {
39
- "@apidevtools/json-schema-ref-parser": "^10.1.0",
39
+ "@apidevtools/json-schema-ref-parser": "^11.5.4",
40
40
  "@docusaurus/plugin-content-docs": ">=2.4.1 <=2.4.3",
41
41
  "@docusaurus/utils": ">=2.4.1 <=2.4.3",
42
42
  "@docusaurus/utils-validation": ">=2.4.1 <=2.4.3",
43
43
  "@paloaltonetworks/openapi-to-postmanv2": "3.1.0-hotfix.1",
44
44
  "@paloaltonetworks/postman-collection": "^4.1.0",
45
- "@redocly/openapi-core": "^1.0.0-beta.125",
45
+ "@redocly/openapi-core": "^1.10.5",
46
46
  "chalk": "^4.1.2",
47
47
  "clsx": "^1.1.1",
48
48
  "fs-extra": "^9.0.1",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14"
62
62
  },
63
- "gitHead": "9064dd22c8e18125f838fd88caba6364e5484b68"
63
+ "gitHead": "4f4fe67483424356245c4ed9eae31f4cd3c7736a"
64
64
  }
@@ -24,7 +24,7 @@ export function guard<T>(
24
24
  value: T | undefined,
25
25
  cb: (value: T) => Children
26
26
  ): string {
27
- if (!!value) {
27
+ if (!!value || value === 0) {
28
28
  const children = cb(value);
29
29
  return render(children);
30
30
  }