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

Detect CodeGen gaps by leveraging both server and client generation for TypeSpec-ToDo #8

Open
lirenhe opened this issue Nov 28, 2024 · 4 comments
Assignees

Comments

@lirenhe
Copy link
Collaborator

lirenhe commented Nov 28, 2024

  1. Generate the server code for TypeSpec-ToDo with some basic implementation.
  2. Generate client code for Java, Python, JS & .NET and try to run them against service code.

Please help to detect gap by scanning the code and run some manual testing.
Areas to verify:
a. The behavior of different error code handling.
b. Paging behavior.
c. Basic CRUD operation could work E2E.

@lirenhe
Copy link
Collaborator Author

lirenhe commented Nov 28, 2024

cc @ArcturusZhang , could you help with server generation and work with language owner to verify the client code E2E

@ArcturusZhang
Copy link
Collaborator

ArcturusZhang commented Nov 29, 2024

For dotnet generated library:

  1. NoAuth is not working. This spec has @useAuth(NoAuth) on the Users namespace. But the generated Users subclient is actually not affected at all.
  2. ApiKeyAuth<cache, "session-id"> is not quite working in the cache way.
  3. The @visibility("none") property Validated is exposed in the client generated result (known issue for generator)
  4. Pageable operations are not generated as pageable because pageable is not implemented for unbranded libraries.

@weidongxu-microsoft
Copy link
Contributor

weidongxu-microsoft commented Nov 29, 2024

Java

  • Emitter only support service specify Auth configure in one place. The configure on root namespace takes effect. So NoAuth on Users does not work.
  • Error model is not generated. PR in progress.
  • Pageable operation is not generated as pageable. Design with architects pending.

@msyyc
Copy link
Collaborator

msyyc commented Nov 29, 2024

Python issues summary: Azure/autorest.python#2934

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

4 participants