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

[roq-data] raw array content as object not working out of the box #147

Open
ia3andy opened this issue Oct 8, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ia3andy
Copy link
Contributor

ia3andy commented Oct 8, 2024

there is a bug for a raw data array, when iterating, it doesn't wrap items content as JsonObject, it works with an extra items layer:

This works:

items:
  - title: "Blog"
    url: "/"
    icon: "fa fa-newspaper-o"
  - title: "Documentation"
    url: "https://docs.quarkiverse.io/quarkus-roq/dev/index.html"
    icon: "fa fa-book"
    target: "_blank"
  - title: "Events"
    url: "events"
    icon: "fa fa-calendar"
  - title: "About"
    url: "about"
    icon: "fa fa-thumbs-up"

this doesn't (when used from qute in a for loop):

- title: "Blog"
  url: "/"
  icon: "fa fa-newspaper-o"
- title: "Documentation"
  url: "https://docs.quarkiverse.io/quarkus-roq/dev/index.html"
  icon: "fa fa-book"
  target: "_blank"
- title: "Events"
  url: "events"
  icon: "fa fa-calendar"
- title: "About"
  url: "about"
  icon: "fa fa-thumbs-up"
@ia3andy ia3andy added this to the 1.0 milestone Oct 9, 2024
@ia3andy ia3andy added the bug Something isn't working label Oct 9, 2024
@mcruzdev
Copy link
Member

mcruzdev commented Oct 9, 2024

I will take a look tomorrow with #158, thank you for assigning me

@mcruzdev mcruzdev assigned ia3andy and mcruzdev and unassigned mcruzdev and ia3andy Oct 12, 2024
@ia3andy ia3andy modified the milestones: 1.0, 1.1 Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants