GuilhemN
Repos
33
Followers
64
Following
15

The Symfony PHP framework

27477
8585

Generates documentation for your REST API from annotations

2082
743

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2739
694

Modelling of the impact of social tracing apps during the Covid19 pandemic

Samples demonstrating the use of SGX DCAP (Intel Enclaves leveraging a caching server to speed up attestation)

0
0

A π-calculus interpreter written in Go

5
0

Events

Remove debug code

Created at 2 days ago
Memory Leak on v4.10

Thank you for confirming, I tried to look into memory consumption yesterday and a lot of it seems to come from annotations caching.

My guess is that the whole open API annotation is cached for every annotation loaded (so n² memory complexity it that's right 😅). I'll try to use the uncached annotations loader when I have a moment. I think we should rather cache at the end of the computation of the API, that should be more efficient.

Created at 3 days ago
Memory Leak on v4.10

I would assume this has been introduced by https://github.com/nelmio/NelmioApiDocBundle/commit/be8499ffdc5915c5af5e0d1d98071202fc1a5b94... We tried to comply more with Swagger-PHP internals but that comes with more object loop references, and PHP garbage collector probably has a lot of difficulties cleaning those.

Could you check if this commit is indeed the cause of the memory leak you notice please? (by checking this commit and its parent)

Not sure how we should solve that if this is the root cause though...

Created at 4 days ago
Areas don't work with ApiPlatform

Areas are not supported for Api-Platform. So far we did not hook much into ApiPlatform internals and we are mostly merging the open api specification they generate into Nelmio's one.

You could eventually create a describer with a low priority filtering paths but supporting areas for ApiPlatform resources would require significant work which I can't commit to. PR very much welcome however if anyone is willing to give it a try!

Created at 4 days ago
Make ClassMetadataFactory optional

Yes, just merged and released.

Created at 4 days ago
GuilhemN create tag v4.10.1
Created at 4 days ago
GuilhemN delete branch GuilhemN-patch-1
Created at 4 days ago

Make ClassMetadataFactory optional

Update services.xml

fix

Merge pull request #2039 from nelmio/GuilhemN-patch-1

Make ClassMetadataFactory optional

Created at 4 days ago
This bundle used to work without the symfony serializer being installed and enabled

With version 4.10 I receive this error:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
!!                                                                                 
!!    The service "nelmio_api_doc.model_describers.object" has a dependency on a   
!!    non-existent service "serializer.mapping.class_metadata_factory".            
!!                                                                 
Created at 4 days ago
pull request closed
Make ClassMetadataFactory optional

Fix https://github.com/nelmio/NelmioApiDocBundle/issues/2038

Created at 4 days ago
This bundle used to work without the symfony serializer being installed and enabled

Indeed, that's an issue introduced in #2034. Thank you for the report!

Just opened https://github.com/nelmio/NelmioApiDocBundle/pull/2039 to fix that, could you check if it works for you?

Created at 1 week ago

Update services.xml

Created at 1 week ago
pull request opened
Make ClassMetadataFactory optional
Created at 1 week ago
GuilhemN create branch GuilhemN-patch-1
Created at 1 week ago
NelmioApiDoc doesn't group anymore endpoints of entities when using ApiPlatform

Not sure what's happening with api-platform/core:2.x, if you have a reproduced that could help but I can't spend much time on debugging.

About api-platform/core:3, this was not a supported version so far. I'm surprised you still got a documentation still somehow working. I just merged https://github.com/nelmio/NelmioApiDocBundle/pull/2037 to add its support, could you check if this works better for you?

Created at 1 week ago
GuilhemN delete branch APIPLATFORM
Created at 1 week ago

Add Api-Platform 3.x support

Fix CS

fixes

CS

Merge pull request #2037 from nelmio/APIPLATFORM

Add Api-Platform 3.x support

Created at 1 week ago
pull request closed
Add Api-Platform 3.x support
Created at 1 week ago

fix(symfony): Missing dependency on symfony/deprecation-contracts

Created at 1 week ago
pull request opened
Add Api-Platform 3.x support
Created at 1 week ago
GuilhemN create branch APIPLATFORM
Created at 1 week ago

fix(dependencies): Missing dependency on symfony/deprecation-contracts

Created at 1 week ago
Symfony's auto-generated PHP Config class NelmioApiDocConfig seems unusable (or I didn't understood how at least)

What kind of error are you getting?

I've never used NelmioApiDocConfig so probably won't be of much help here without a reproducer. You may also try asking on Slack or Stack Overflow for help since this is probably not due to config/code from the bundle.

Created at 1 week ago
Adding support for Symofny Assert\Sequentially

Indeed, thank you @cretiv-dev!

Created at 1 week ago