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

Validation type - should have been 'object' but was 'Array'. #1099

Closed
photkey opened this issue Feb 4, 2025 · 2 comments · Fixed by #1100
Closed

Validation type - should have been 'object' but was 'Array'. #1099

photkey opened this issue Feb 4, 2025 · 2 comments · Fixed by #1100

Comments

@photkey
Copy link

photkey commented Feb 4, 2025

https://dalyisaac.github.io/Whim/configure/core/workspaces.html

workspaces:
  entries:
    - name: Browser
      layout_engines:
        - type: SliceLayoutEngine
          variant:
            type: column
        - type: SliceLayoutEngine
          variant:
            type: row
        - type: TreeLayoutEngine

    - name: IDE
    - name: Chat
    - name: Spotify
    - name: Other

Adding the example configuration from the official documentation to the config file resulted in an error. The error message is:

Error 1:
Validation type - should have been 'object' but was 'Array'.
Violated #/properties/workspaces/properties/entries/items/$ref/properties/layout_engines/$ref/type
@photkey
Copy link
Author

photkey commented Feb 4, 2025

This should be a document error. I've tried changing the format to the following, and it now works correctly.

workspaces:
  entries:
    - name: Browser
      layout_engines:
        entries:
          - type: slice
            variant:
              type: primary_stack

@dalyIsaac dalyIsaac linked a pull request Feb 9, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this to Done in Whim Feb 9, 2025
@dalyIsaac
Copy link
Owner

Thanks! There's always one lurking around

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants