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

Models with the same name override each other on generate #1

Open
wtho opened this issue May 29, 2021 · 0 comments
Open

Models with the same name override each other on generate #1

wtho opened this issue May 29, 2021 · 0 comments

Comments

@wtho
Copy link
Owner

wtho commented May 29, 2021

Example:

@Record({ name: 'conflict' }) class Conflict1 {}
@Record({ name: 'conflict' }) class Conflict2 {}
const config: Config = {
  models: [{ class: Conflict1 }, { class: Conflict2 }],
  outDir: 'schemas'
}
export default config

This will create the file schemas/conflict.avsc twice and the second generation will override the first.

@wtho wtho changed the title Models witth the same name will just override each other on generate Models with the same name override each other on generate Jun 19, 2021
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