swagger-api / swagger-parser

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

dots lost when dereferencing files with dots #2092

Open simonhege opened 1 month ago

simonhege commented 1 month 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 1 month ago

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

simonhege commented 1 month ago

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