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

Decorator Command with properties without a type adds decorator to declaration #751

Closed
dselman opened this issue Nov 2, 2023 · 0 comments · Fixed by #752
Closed

Decorator Command with properties without a type adds decorator to declaration #751

dselman opened this issue Nov 2, 2023 · 0 comments · Fixed by #752
Assignees
Labels

Comments

@dselman
Copy link
Contributor

dselman commented Nov 2, 2023

Bug Report 🐛

If you create a decorator command that uses properties but you don't supply a type option then the decorator is applied to the parent declaration.

Expected Behavior

It should be possible to not supply the type option in the command.

Current Behavior

This decorator command fails to apply to the favoriteColor property, instead is gets applied to the Driver declaration.

{
        "$class": "[email protected]",
        "type": "UPSERT",
        "target": {
          "$class": "[email protected]",
          "namespace": "[email protected]",
          "declaration": "Driver",
          "properties": ["favoriteColor"]
        },
        "decorator": {
          "$class": "[email protected]",
          "name": "Preference",
          "arguments": []
        }
      }

Possible Solution

Steps to Reproduce

Context (Environment)

Desktop

  • OS: [e.g. macOS]
  • Browser: [e.g. Chrome, Safari]
  • Version: [e.g. 0.22.15]

Detailed Description

Possible Implementation

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

Successfully merging a pull request may close this issue.

1 participant