Skip to content
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

Warning: Failed prop type: Invalid prop required of type array supplied to ForwardRef(FormControl), expected boolean. #1240

Open
neuralsea-lab opened this issue Mar 10, 2023 · 1 comment
Assignees
Labels
Area: Theme Affects some of the theme packages Type: Bug Bug reports and their fixes

Comments

@neuralsea-lab
Copy link

Received warning above for required: [], field in schema below. Setting required: true does not work - it is definitely an array that is expected.
For schema:

const schema: JSONSchemaType<Kloud8Data> = {
    title: 'Kloud8 Request',
    type: 'object',
    properties: {
        useCaseDescription: { type: 'string', uniforms: { component: LongTextField } },
        resourceQuotas: {
            type: 'object',
            properties: {
                minMemory: { type: 'number', minimum: 128, uniforms: { component: MemoryQuotaField } },
                minCpu: { type: 'number', minimum: 100, uniforms: { component: CPUQuotaField } },
                maxMemory: { type: 'number', maximum: 256, uniforms: { component: MemoryQuotaField } },
                maxCpu: { type: 'number', maximum: 200, uniforms: { component: CPUQuotaField } },
            },
            required: [],
        },
   }
}
@radekmie radekmie self-assigned this Mar 26, 2023
@radekmie radekmie added Type: Bug Bug reports and their fixes Area: Theme Affects some of the theme packages labels Mar 26, 2023
@github-project-automation github-project-automation bot moved this to Needs triage in Open Source Mar 26, 2023
@radekmie
Copy link
Contributor

Hi @neuralsea-lab. If it's just a warning, it shouldn't cause any issues. Please share what theme (and version) are you using.

@radekmie radekmie moved this from Needs triage to Concept in Open Source Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Theme Affects some of the theme packages Type: Bug Bug reports and their fixes
Projects
Status: Concept
Development

No branches or pull requests

2 participants