ocramius,
@ocramius@mastodon.social avatar

@wyri is your OpenAPI client generator already in usable state?

Seen no releases under https://github.com/php-api-clients/openapi-client-generator, and I just received a "what the fresh hell is this" OpenAPI schema to process xD

stof,
@stof@phpc.social avatar

@ocramius Have you checked jane-php for that ? https://jane.readthedocs.io/en/latest/ @wyri

ocramius,
@ocramius@mastodon.social avatar

@stof yeah, I know there are some pre-existing ones, mostly want to try the one by @wyri due to the added type strictness that he's been pushing

wyri,
@wyri@haxim.us avatar

@ocramius @stof another thing l'm pushing with it is performance. Hydrators are generated, using @reactphp for HTTP until we support PSR-18 there, whole thing runs on fibers and generators as low as possible to make the rest as simple as possible. Currently working on adding QA configuration options and generating @phpstan extension to make types for certain parts better.

I'd say it's currently somewhere between alpha and beta stability wise.

ocramius,
@ocramius@mastodon.social avatar

@wyri is there an entry-point somewhere? Only saw the mono-repo: should I try and emulate your CI pipelines?

wyri,
@wyri@haxim.us avatar

@ocramius let me set up a demo repo once I'm at a keyboard again.

ocramius,
@ocramius@mastodon.social avatar

@wyri thanks if you do!

wyri,
@wyri@haxim.us avatar

@ocramius It's about time honestly, the meta one is big and handles a ton of automation.

ocramius,
@ocramius@mastodon.social avatar

@wyri btw, totally happy with you linking me a CI pipeline that generates a client somewhere - that is enough for me :D

wyri,
@wyri@haxim.us avatar
ocramius,
@ocramius@mastodon.social avatar

@wyri thanks for this! Already helps me a ton :-)

ocramius,
@ocramius@mastodon.social avatar

@wyri is it OK to run api-clients/openapi-client-generator from dev-master as a dependency, or is usage supposed to go through a clone?

wyri,
@wyri@haxim.us avatar

@ocramius Yes, generator is purely for generaring tho, so add it as a dev dependency. It has some more requirements, but those can be found here: https://github.com/php-api-clients/openapi-client-generator/blob/master/example/templates/composer.json#L13-L25

wyri,
@wyri@haxim.us avatar

@ocramius Thanks! That is awesome to hear <3!

ocramius,
@ocramius@mastodon.social avatar

@wyri got something generated: still looks really wonky, due to missing Operation and Error classes :D

Potentially usable though - will try it out!

wyri,
@wyri@haxim.us avatar

@ocramius @stof Still breaking the config file often, but the generating and generated code is getter more stable. Still have a few spec (edge) cases to take care of. And not all unit tests are passing for certain generated operations. But it is getting closer to that.

Main reason I haven't tagged yet is that I want to be able generating clients that pass it's own, generated, unit terts before releasing a stable version.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • rosin
  • everett
  • Leos
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • megavids
  • JUstTest
  • All magazines