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

Update tests to generate files for multiple serializer types #291

Open
josh-burton opened this issue Jan 20, 2025 · 0 comments
Open

Update tests to generate files for multiple serializer types #291

josh-burton opened this issue Jan 20, 2025 · 0 comments

Comments

@josh-burton
Copy link

Use case

It would be really useful to be able to have a single test case such as discriminated_one_of.3.0, which generates and verifies files for multiple serializers within the same test case.

Proposal

Create a new SWPTestConfig more suitable to tests. This would be used to setup the test and construct a final SWPConfig.

  • add a List<> jsonSerializer field to SWPTestConfig
  • add all other SWPConfig options to SWPTestConfig except for outputDirectory, and schemaPath.
  • update e2eTest function to generate test files in a subfolder with the serializer name
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

No branches or pull requests

1 participant