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

Improve error message: Exposing a generated sql type #4895

Open
matt2e opened this issue Mar 18, 2025 · 1 comment
Open

Improve error message: Exposing a generated sql type #4895

matt2e opened this issue Mar 18, 2025 · 1 comment
Labels
triage Issue needs triaging

Comments

@matt2e
Copy link
Collaborator

matt2e commented Mar 18, 2025

If you expose a sql type as a verb request or response type in go you get this error message:
Build failed: could not extract schema: "CreateRequestQuery" is an unsupported generated type: *schema.Data
We should make it clearer, explaining that sql types must be private to the module.

@github-actions github-actions bot added the triage Issue needs triaging label Mar 18, 2025
@matt2e matt2e changed the title Improve error messag: Exposing a generated sql type Improve error message: Exposing a generated sql type Mar 18, 2025
@matt2e
Copy link
Collaborator Author

matt2e commented Mar 18, 2025

It would also be interesting if we could move this check to schema validation so it works for all languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs triaging
Projects
None yet
Development

No branches or pull requests

1 participant