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

Support nested properties inside block.json attributes #222

Open
mrclay opened this issue Mar 29, 2024 · 0 comments · May be fixed by #223
Open

Support nested properties inside block.json attributes #222

mrclay opened this issue Mar 29, 2024 · 0 comments · May be fixed by #223
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mrclay
Copy link

mrclay commented Mar 29, 2024

I'd like the plugin to support object properties inside attributes like:

{
  ...
  "attributes": {
    "film": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
        ...
      }
    }
  }
}

Currently any "type": "object" falls into the generic BlockAttributesObject type, and it seems I can't even extend it with register_graphql_field('MyBlock', 'film', ....

@theodesp theodesp added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants