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

Parse default field for schema and auto populate in Form field #3640

Open
kevin-kho opened this issue Jan 29, 2025 · 0 comments
Open

Parse default field for schema and auto populate in Form field #3640

kevin-kho opened this issue Jan 29, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kevin-kho
Copy link
Contributor

Description

Currently, busola doesn't parse the default field when calling useGetSchema.

Reasons

We like to automatically populate default values when creating a resource within busola UI.

Attachments

Assume we have the following YAML snippet:

spec:
  properties:
    engineVersion:
      default: "7.0"
      enum:
        - "7.1"
        - "7.0"
        - 6.x
      type: string

useGetSchema will parse enum and type but fails to parse default.

We'd like to parse it and auto populate/set the field on the Form

@mrCherry97 mrCherry97 added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants