Closed evilbluebeaver closed 10 months ago
I got this problem also, I'll test your fix
Please let me know, i didn't see a problem on master, but i do extract the schemas.
This indeed fixed my problem. Thank you !
I guess the problem is this. s.definitions_path is only set to correct value when it's been called from 'extract_schemas' while extract flag is set. But at the same time this leads to setting 'needs_reset' flag in ApiRouter::merge_api. So SchemaGenerator will always be recreated with definitions_path set to default "#/definitions/"
Closing in favor of #96 which is a cleaner implementation. it changes the default to exctract which is generally better and can be disabled, both work.
fixed in 0.13.1
Hi! I got my OpenApi generator broken after updating to 0.13.0. It generates a 'components/schemas' section for custom schemas but anchors to them are wrong. For example (I translated JSON to YAML for clarity):
I don't know if my fix is a correct one but it did fix the issue for me.