space_gen
space_gen copied to clipboard
Simple, hackable Open API generator for Dart
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...