Open philsturgeon opened 4 weeks ago
Update, my mistake, it's not the names (the variable name in the YAML) but the summary string.
If I change the examples summary string in the response then all summaries are unique.
examples:
Card:
summary: Card Payment Response
Bank:
summary: Bank Account Payment Response
This avoids the Microcks convention as the names need to be the same but summary does not matter.
Still, I'd call this one a bit unexpected.
Describe the bug
If example names match in the request and response (a convention leveraged by Microcks to help match response examples to request examples) then
fern generate
produces errors as it seems to want all examples to have unique names.Example OpenAPI.
To reproduce
Steps to reproduce the behavior:
And using generators:
fern generate
Expected behavior
I expect the train travel api to generate openapi without errors.
CLI Version
0.39.4