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

M4 deduplication results invalid schema reference #5067

Open
jhendrixMSFT opened this issue Jan 29, 2025 · 1 comment
Open

M4 deduplication results invalid schema reference #5067

jhendrixMSFT opened this issue Jan 29, 2025 · 1 comment
Labels

Comments

@jhendrixMSFT
Copy link
Member

This was discovered in Azure/azure-rest-api-specs#31678

fatal   | Error: Invalid Reference schemas:614 -- #/components/schemas/schemas:614

From the --inspector dump, schemas:614 refers to deduplicated type FaultSimulation and from the verbose debug logs it looks like M4 kept a different one.

verbose | [3.20 s] Schema FaultSimulation has multiple identical declarations, reducing to just one - removing: 0, keeping: schemas:394
@tadelesh
Copy link
Member

tadelesh commented Feb 5, 2025

there is a duplicate discriminated type. perhaps the bug is from that.

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

No branches or pull requests

2 participants