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

cannot define enum with value starting with "DELETE" #330

Closed
alibek-gao opened this issue Jan 27, 2025 · 1 comment
Closed

cannot define enum with value starting with "DELETE" #330

alibek-gao opened this issue Jan 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@alibek-gao
Copy link

alibek-gao commented Jan 27, 2025

Steps to reproduce:

  1. Create enum with value starting with "DELETE"
enum FooBar {
  DELETE_FOO,
  UPLOAD_BAR
}
  1. Generate
  2. See error "CustomType expected, not: Method at line X and position 3"
  • OS: macOS
  • IDE: IntelliJ
  • Language: Typescript
  • Wirespec version: 0.10.23
@ZzAve
Copy link
Collaborator

ZzAve commented Jan 29, 2025

Hi @alibek-gao , thanks for taking the time and reporting this issue to us. This seems an issue with our wirespec language.

We noticed you've cooked up a fix for this in #331 already. Amazing! Building on top of your initial pull request, we made #332, adding a test case to validate this works now, and keeps working in the future.

Thanks again for your report 🙏 !

@ZzAve ZzAve closed this as completed Jan 29, 2025
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