Skip to content

🐞 Bug: Playground unable to load schema with objects #37

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

Open
3 of 17 tasks
justjam2013 opened this issue May 29, 2025 · 1 comment
Open
3 of 17 tasks

🐞 Bug: Playground unable to load schema with objects #37

justjam2013 opened this issue May 29, 2025 · 1 comment

Comments

@justjam2013
Copy link

justjam2013 commented May 29, 2025

Describe the bug
which version of ng-formworks:

  • 15.x.x
  • 16.x.x
  • 17.x.x
  • 18.x.x
  • 19.x.x

which version of Angular:

  • 15
  • 16
  • 17
  • 18
  • 19

which framework:

  • MaterialDesignFrameworkModule β€” Material Design
  • Bootstrap3FrameworkModule β€” Bootstrap 3
  • Bootstrap4FrameworkModule β€” Bootstrap 4
  • Bootstrap5FrameworkModule β€” Bootstrap 5
  • DaisyUIFrameworkModule β€” DaisyUI
  • NoFrameworkModule β€” plain HTML
  • Other (please specify below)

A clear and concise description of what the bug is.

To Reproduce

The playground appears to have problems loading the following schema:

{
  "schema": {
    "type": "object",
    "properties": {
      "hasAudio": {
        "title": "Has audio",
        "type": "boolean"
      },
      "speaker": {
        "title": "Speaker",
        "type": "object",
        "properties": {
          "mute": {
            "title": "Mute",
            "description": "Speaker is muted",
            "type": "boolean"
          },
          "volume": {
            "title": "Volume *",
            "description": "Speaker volume (0% - 100%)",
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          }
        },
        "condition": {
          "functionBody": "return model.hasAudio === true;"
        }
      }
    }
  }
}

The playground example shows that the form is loading, but it never actually loads and the Input JSON Schema and Form Layout textarea is empty.

Image

Note: This issue only affects the playground, not the use of ng-formworks.

Desktop (please complete the following information):

  • OS: [macOS]
  • Browser [chrome]
  • Version [125.0.6422.142]
@justjam2013
Copy link
Author

It appears that this is just the case when the object has multiple properties. It loads fine, when the object has a single property.

Playground example

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

No branches or pull requests

1 participant