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
LogicError: No additional properties in type #136
Comments
You are trying to create a JSON schema for a class which is extending React.Component. Are you sure that's what you want to do? What sense does it make to have a JSON schema for such a type? Anyway, the extracted problematic code is actually this: declare const FormLayouts: ["horizontal", "inline", "vertical"];
export declare type FormLayout = (typeof FormLayouts)[number]; Generating the schema for type |
PR #139 will fix this problem. But even with this you will not be able to create a JSON schema for this complex Form class. The next problematic part will be this interesting type:
So this is actually a function type and functions are not supported in JSON and therefor out-of-scope for a JSON schema generator. |
@kayahr |
when I run
it raise error:
do you know why? thanks |
Step to reproduce:
Will receive an error
The text was updated successfully, but these errors were encountered: