You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If I try to use StrictRJSFForm type from @rjsf/utils, we don't get JSONSchema7 type since "@types/json-schema": "^7.0.15" is a dev-dependency.
Took me some time to realise this issue. As a quick fix for my app I just added the "@types/json-schema" as a dev-dependency. But this will break as soon as RJSF moves to a new json schema format.
Describe the solution you'd like
While I understand @types/json-schema should be a dev-dependency but wouldn't it be better if this type is bundled with the generated types? Or maybe add this as a special box to documents if no such change is made to the code?
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered:
@Elessar1802 Is there a reason why you don't use the RJSFSchema as it allows for a more generic approach to schemas? My own code always uses RJSFSchema and I never need the @types/json-schema in my code.
Prerequisites
What theme are you using?
utils
Is your feature request related to a problem? Please describe.
If I try to use
StrictRJSFForm
type from@rjsf/utils
, we don't getJSONSchema7
type since"@types/json-schema": "^7.0.15"
is a dev-dependency.Took me some time to realise this issue. As a quick fix for my app I just added the
"@types/json-schema"
as a dev-dependency. But this will break as soon as RJSF moves to a new json schema format.Describe the solution you'd like
While I understand
@types/json-schema
should be a dev-dependency but wouldn't it be better if this type is bundled with the generated types? Or maybe add this as a special box to documents if no such change is made to the code?Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: