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

Exception during deserialization on Messages object #145

Open
Christian-Schou opened this issue Nov 27, 2024 · 1 comment
Open

Exception during deserialization on Messages object #145

Christian-Schou opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Christian-Schou
Copy link

I am trying to create an API using this official template: https://wrapt.dev/docs/message-template#add-message-template-properties when I add the Messages in the template definition, I get an exception.

Steps to reproduce

Command: craftsman new domain .\definition.yml

The .\definition.yml file contents:

DomainName: WeSendReportsCompany
BoundedContexts:
  - ProjectName: Reporting
    Producers:
      - EndpointRegistrationMethodName: SubmitReportRequest
        ExchangeName: report-requests
        MessageName: ISendReportRequest
        ExchangeType: fanout
        ProducerName: ReportWasRequested
        UsesDb: true
    Consumers:
      - EndpointRegistrationMethodName: AllReportsGetSentFromHereEndpoint
        ConsumerName: SenderOfAllReports
        ExchangeName: report-requests
        MessageName: ISendReportRequest
        QueueName: all-reports
        ExchangeType: fanout
    Messages:
      - Name: ISendReportRequest
        Properties:
          - Name: ReportId
            Type: guid
          - Name: Provider
            Type: string
          - Name: Target
            Type: string
    Bus:
      AddBus: true

Exception when executing the command: Error: (Line: 3, Col: 5, Idx: 77) - (Line: 3, Col: 5, Idx: 77): Exception during deserialization

I figured out it's the Messages part, as removing it makes craftsman parse the file without problems and scaffolds the project as expected.

Further technical details

Craftsman version (dotnet tool list -g): 0.28.0

@Christian-Schou Christian-Schou added the bug Something isn't working label Nov 27, 2024
@pdevito3
Copy link
Owner

Thanks for the callout I'll look into this

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
None yet
Development

No branches or pull requests

2 participants