mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 13:52:46 +00:00
Update NodeJS server petstore samples with OAS2, OAS3 (#113)
* update nodejs server oas2 * update nodejs server petstore with oas3 * update nodejs google cloud with oas2 petstore * update nodejs server google function with oas3
This commit is contained in:
@@ -391,7 +391,8 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
||||
if (operation.getOperationId() == null) {
|
||||
operation.setOperationId(getOrGenerateOperationId(operation, pathname, method.toString()));
|
||||
}
|
||||
if (operation.getExtensions().get("x-openapi-router-controller") == null) {
|
||||
if (operation.getExtensions() == null ||
|
||||
operation.getExtensions().get("x-openapi-router-controller") == null) {
|
||||
operation.addExtension("x-openapi-router-controller", sanitizeTag(tag));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user