[bug] Fix FILES sort and path provider issue (#7729)

The FILES metadata is supplementary, but was logging a warning while
generating Ada client that FILES couldn't be written. An exception was
being thrown because Path was being reported as two different "types of
Path". One would be reported as mac file, while the other was reported
as a unix file. The fix here is to disconnect path details from the
underlying file system provider by creating a new Path based on the
file's absolute path. This change also fixes sorting so it works
alphabetically in ascending order.
This commit is contained in:
Jim Schubert
2020-10-16 00:34:34 -04:00
committed by GitHub
parent e1e38c8783
commit 41851b45e1
20 changed files with 48 additions and 36 deletions

View File

@@ -1,3 +1,7 @@
.coveralls.yml
.gitignore
.php_cs.dist
.travis.yml
Api/ApiServer.php
Api/PetApiInterface.php
Api/StoreApiInterface.php
@@ -6,27 +10,14 @@ Controller/Controller.php
Controller/PetController.php
Controller/StoreController.php
Controller/UserController.php
DependencyInjection/Compiler/OpenAPIServerApiPass.php
DependencyInjection/OpenAPIServerExtension.php
Model/ApiResponse.php
Model/Category.php
Model/Order.php
Model/Pet.php
Model/Tag.php
Model/User.php
Service/JmsSerializer.php
Service/SerializerInterface.php
Service/StrictJsonDeserializationVisitor.php
Service/SymfonyValidator.php
Service/TypeMismatchException.php
Service/ValidatorInterface.php
Tests/AppKernel.php
Tests/Controller/ControllerTest.php
Tests/test_config.yml
.coveralls.yml
.gitignore
.php_cs.dist
.travis.yml
DependencyInjection/Compiler/OpenAPIServerApiPass.php
DependencyInjection/OpenAPIServerExtension.php
OpenAPIServerBundle.php
README.md
Resources/config/routing.yml
@@ -40,6 +31,15 @@ Resources/docs/Model/Order.md
Resources/docs/Model/Pet.md
Resources/docs/Model/Tag.md
Resources/docs/Model/User.md
Service/JmsSerializer.php
Service/SerializerInterface.php
Service/StrictJsonDeserializationVisitor.php
Service/SymfonyValidator.php
Service/TypeMismatchException.php
Service/ValidatorInterface.php
Tests/AppKernel.php
Tests/Controller/ControllerTest.php
Tests/test_config.yml
autoload.php
composer.json
git_push.sh