Skip to content

[BUG] traits are not working proper #84

@benkeil

Description

@benkeil

Describe the bug.

It's not possible to add message traits via references.

traits {
  trait {
    headersRef {
      ref("#/components/messageTraits/cloudEventHeaders")
    }
  }
}

produces

traits:
  - headers:
      $ref: "#/components/messageTraits/cloudEventHeaders"

but valid would be

traits:
  - $ref: "#/components/messageTraits/cloudEventHeaders"

The DSL does not allow to add refs.

Expected behavior

allow traits to be just references

Screenshots

How to Reproduce

See example

🖥️ Device Information [optional]

No response

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions