space_gen icon indicating copy to clipboard operation
space_gen copied to clipboard

Simple, hackable Open API generator for Dart

Results 7 space_gen issues
Sort by recently updated
recently updated
newest added

I played some hours together with Cursors agents and it now processes our full api-spec which has some nested structures. Not sure if you can use the generated code but...

@eseidel Hi Eric, I thought I give it a try but I didn't get far. 1. global activation didn't work somehow athough I have my path set up on windows...

To reproduce, run: ```sh dart run space_gen -i https://raw.githubusercontent.com/openfoodfacts/openfoodfacts-server/dad1ccf2cec963f1e9b0d0135b43274b26295d61/docs/api/ref/api.yaml -o openfoodfacts_api ``` See the error: ``` [WARN] Unknown string format: password in #/paths//cgi/session.pl/post/requestBody/content/application/x-www-form-urlencoded/schema/properties/password Unhandled exception: FormatException: $ref not expected in...

e.g. ``` import 'package:test/test.dart'; {{#imports}} import '{{{.}}}'; {{/imports}} void main() { test(''{{ schemaName }} json round trip'', () { final value = {{ schemaName }}.testValue(); final json = value.toJson(); final...