Skip to content

Commit

Permalink
global:: scope patches
Browse files Browse the repository at this point in the history
Signed-off-by: Clemens Vasters <[email protected]>
  • Loading branch information
clemensv committed Apr 4, 2024
1 parent 458640f commit 8b9e616
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xregistry/templates/cs/amqpproducer/EventProducer.cs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace {{ project_name | pascal }}
{%- set isAmqp = not isCloudEvent and definition.format.lower().startswith("amqp") %}
public async Task Send{{ pascalDefinitionName | strip_namespace }}Async(
{%- if definition.schemaurl or definition.schema -%}
{{ (definition.schemaurl if definition.schemaurl else definition.schema) | schema_type( project_name, root, definition.schemaformat) | pascal }} data
global::{{ (definition.schemaurl if definition.schemaurl else definition.schema) | schema_type( project_name, root, definition.schemaformat) | pascal }} data
{%- else -%}
object data
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion xregistry/templates/cs/egproducer/EventProducer.cs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace {{ project_name | pascal }}
{%- endif %}
public async Task Send{{ pascalDefinitionName | strip_namespace }}Async(
{%- if definition.schemaurl or definition.schema -%}
{%- set type_name = (definition.schemaurl if definition.schemaurl else definition.schema) | schema_type( project_name, root,definition.schemaformat) | pascal %}
global::{%- set type_name = (definition.schemaurl if definition.schemaurl else definition.schema) | schema_type( project_name, root,definition.schemaformat) | pascal %}
{%- else -%}
{%- set type_name = "object" %}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion xregistry/templates/java/_common/amqp.jinja.include
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ try {
{
return this.{{ handlerName }}.On{{ pascalDefinitionName | strip_namespace }}Async({{ message }},
{%- if message.schemaurl or message.schema -%}
{{ ( message.schemaurl if message.schemaurl else message.schema) | schema_type( project_name, root, message.schemaformat) | strip_namespace | pascal }}.FromData({{ message }}.Body, {{ message }}.Properties.ContentType)
{{ ( message.schemaurl if message.schemaurl else message.schema) | schema_type( project_name, root, message.schemaformat) | pascal }}.FromData({{ message }}.Body, {{ message }}.Properties.ContentType)
{%- else -%}
{{ message }}.Data
{%- endif %});
Expand Down

0 comments on commit 8b9e616

Please sign in to comment.