-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade API server integration tests to use Fake Petstore spec #5419 #5420
Comments
@wing328 Let me know if I have this correct. You just want to go back through for all of the tests and update petstore.yaml to petstore-with-fake-endpoints-models-for-testing.yaml for all of the .sh and .bat files correct? Or do you only want it updated for the ones that can generate servers? e.g. node but not typescript-angular becauese that can only be a browser client lib not a server client lib. |
@kenisteward this "issue" is for server generators only. |
Alright I'll handle this. Should the list be updated to these? Got them from the initial readme. Since you can't have an Typescript Angular server, however it might be possible to have an typescript-jquery server i just don't think we generate them. |
@kenisteward I've removed Typescript in the list. Thanks for pointing it out. |
@wing328 I'm trying to update server Slim generator and spotted small issue: get:
tags:
- fake
summary: To test enum parameters
description: To test enum parameters
operationId: testEnumParameters
consumes:
- "*/*"
produces:
- "*/*"
parameters: Produces PHP syntax error: /**
* GET testEnumParameters
* Summary: To test enum parameters
* Notes: To test enum parameters
* Output-Formats: [*/*]
*/
$app->GET('/v2/fake', function($request, $response, $args) { Should I somehow escape |
@wing328 I've updated Slim codegen and now /**
* GET testEnumParameters
* Summary: To test enum parameters
* Notes: To test enum parameters
* Output-Formats: [*\/*]
*/
$app->GET('/v2/fake', function($request, $response, $args) { Next I'm going to fix broken models: <?php
/*
* $Special[modelName]
*/
namespace \Models;
/*
* $Special[modelName]
*/
class $Special[modelName] {
/* @var int $specialPropertyName */
private $specialPropertyName;
} <?php
/*
* 200Response
*/
namespace \Models;
/*
* 200Response
*/
class 200Response {
/* @var int $name */
private $name;
/* @var string $class */
private $class;
} There are also models with |
@wing328 #7698 issue appeares:
If @edwd is right in topic above, we cannot sort route paths inside codegen. Maybe we need to throw warnings when routes overlaps. |
Description
petstore-with-fake-endpoints-models-for-testing.yaml covers a lot more edge cases when comparing with the original one (petstore.yaml)
We'll need to to update petstore.yaml with petstore-with-fake-endpoints-models-for-testing.yaml so to ensure the edge cases are covered moving forward.
API servers using petstore-with-fake-endpoints-models-for-testing.yaml:
If anyone wants to work on the enhancement, please reply to let us know. Thank you!
The text was updated successfully, but these errors were encountered: