-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-docs: Warning: Received false
for a non-boolean attribute deprecated
#2420
Labels
Comments
Not 100% sure if we run into the same problem, but I can reproduce the same error with the following file openapi: '3.0.0'
info:
title: Title
version: v1alpha
paths:
/nvschade/werkgeverstamgegevens/v1alpha/werkgevers:unrelate:
post:
responses:
'200':
description: Foo
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
components:
schemas:
EmptyRecord:
title: EmptyRecord
type: object
properties: {}
EmptyRecord2:
title: EmptyRecord2
type: object
properties: {}
Response:
title: Response
oneOf:
- $ref: '#/components/schemas/EmptyRecord'
- $ref: '#/components/schemas/EmptyRecord2' But I only get the error when running with npx redocly build-docs apps/openapi/openapi.yaml --output dist/apps/openapi/index.html --theme.openapi.expandResponses="200,201"
Prerendering docs
Warning: Received `false` for a non-boolean attribute `deprecated`.
If you want to write it to the DOM, pass a string instead: deprecated="false" or deprecated={value.toString()}.
If you used to conditionally omit it with deprecated={condition && value}, pass deprecated={condition ? value : undefined} instead.
at button
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at El (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:988)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at jl (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:1309)
at Ll (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:2671)
at tp (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1616:1379)
at Sp (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1647:562)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at observerComponent (/Users/johndoe/git/node_modules/mobx-react-lite/dist/mobxreactlite.cjs.development.js:263:12)
at div
at Ap (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1653:3)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at observerComponent (/Users/johndoe/git/node_modules/mobx-react-lite/dist/mobxreactlite.cjs.development.js:263:12)
at Pu (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:2933)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at $u (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:1856)
at ju (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:1688)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at exports.ThemeProvider (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:26613)
at dd (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1819:2282)
at Oe (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:15820)
Warning: Received `true` for a non-boolean attribute `active`.
If you want to write it to the DOM, pass a string instead: active="true" or active={value.toString()}.
at button
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at El (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:988)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at jl (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:1309)
at Ll (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1204:2671)
at tp (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1616:1379)
at Sp (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1647:562)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at observerComponent (/Users/johndoe/git/node_modules/mobx-react-lite/dist/mobxreactlite.cjs.development.js:263:12)
at div
at Ap (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1653:3)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at observerComponent (/Users/johndoe/git/node_modules/mobx-react-lite/dist/mobxreactlite.cjs.development.js:263:12)
at Pu (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:2933)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at $u (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:1856)
at ju (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1668:1688)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at div
at I (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:21998)
at exports.ThemeProvider (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:26613)
at dd (/Users/johndoe/git/node_modules/@redocly/cli/node_modules/redoc/bundles/redoc.lib.js:1819:2282)
at Oe (/Users/johndoe/git/node_modules/styled-components/dist/styled-components.cjs.js:1:15820)
🎉 bundled successfully in: dist/apps/openapi/index.html (38 KiB) [⏱ 1ms]. I am using the following versions:
|
Thanks for the bug report! |
Hi, @unional @wvanderdeijl. It resolved in #2416. We made a new release. Please verify it. |
Thanks. It is working. |
Works in our case as well. Thanks for fixing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The error comes from
redoc.lib.js
->styled-components.cjs.js
There is another one:
Expected behavior
No warning
Minimal reproducible OpenAPI snippet(if possible)
Don't have a minimum repo yet.
This is observed in 1.2.0
The text was updated successfully, but these errors were encountered: