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

[C++,C#] respect the package override option for codecs and DTOs #1024

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

nbradac
Copy link
Contributor

@nbradac nbradac commented Nov 13, 2024

No description provided.

@nbradac nbradac changed the title [C++] respect the package override option for C++ codecs and DTOs [C++,C#] respect the package override option for codecs and DTOs Nov 13, 2024
@nbradac nbradac marked this pull request as ready for review November 14, 2024 17:20
Co-authored-by: Nate Bradac <nate.bradac@weareadaptive.com>

We've updated the C# generation tasks to include a schema that uses
explicit package names on `types` blocks.

We found processing this schema produces some build errors (albeit not
affecting the exit code):

```
> Task :generateCSharpTestCodecs
[Error] explicit-package-test-schema.xml:17:49: cvc-complex-type.3.2.2: Attribute 'package' is not allowed to appear in element 'types'.
[Error] explicit-package-test-schema.xml:30:37: cvc-complex-type.3.2.2: Attribute 'package' is not allowed to appear in element 'types'.

> Task :generateCSharpTestDtos
[Error] explicit-package-test-schema.xml:17:49: cvc-complex-type.3.2.2: Attribute 'package' is not allowed to appear in element 'types'.
[Error] explicit-package-test-schema.xml:30:37: cvc-complex-type.3.2.2: Attribute 'package' is not allowed to appear in element 'types'.
```

Therefore, we've put the new generation under tasks that don't validate
against an XSD. We considered creating a new version of the XSD that
properly describes what we support; however, the licence on the XSD
seems prohibitive.
@nbradac nbradac merged commit 0caf77e into real-logic:master Nov 15, 2024
36 checks passed
@nbradac nbradac deleted the cpp-and-csharp-package-overrides branch November 15, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants