swagger-api / swagger-parser

Swagger Spec to Java POJOs
http://swagger.io
Apache License 2.0
786 stars 531 forks source link

dots lost when dereferencing files with dots #2092

Open simonhege opened 6 months ago

simonhege commented 6 months ago

Hello

Following fix for https://github.com/swagger-api/swagger-parser/issues/1865 the name of the schema lost the dots

The name of the schema being of importance in the code generation, I think the swagger-parser should keep the dots as per the referenced file name

This mean that at https://github.com/swagger-api/swagger-parser/blob/master/modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV3ParserTest.java#L115 I expect to see #/components/schemas/foo.model instead of #/components/schemas/foomodel

simonhege commented 6 months ago

If you agree with this, I'll submit a pull-request for the change.

simonhege commented 6 months ago

Ping @gracekarina as you did the original fix on https://github.com/swagger-api/swagger-parser/issues/1865