fix(swagger-ui-react): fix default value for spec prop (#9025)

Default value must be set to  (empty string) and
not to {} (empty object).

Refs #8976
This commit is contained in:
Vladimír Gorej
2023-07-17 10:24:36 +02:00
committed by GitHub
parent 89f04d3f11
commit 990ff7d3f2

View File

@@ -124,7 +124,7 @@ SwaggerUI.propTypes = {
} }
SwaggerUI.defaultProps = { SwaggerUI.defaultProps = {
spec: {}, spec: "",
url: "", url: "",
layout: "BaseLayout", layout: "BaseLayout",
requestInterceptor: req => req, requestInterceptor: req => req,