We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to generate client-side code using openapi_spec CLI. In such condition I am unable to compile the generated code. Here's the spec:
{ "openapi": "3.0.1", "info": { "title": "Test Doc", "version": "1.0" }, "servers": [ { "url": "https://localhost:3000", "description": "Test Server" } ], "paths": { "/notes": { "get": { "operationId": "getNotes", "parameters": [ { "name": "category", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Note" } } } } } } } } }, "components": { "schemas": { "Note": { "required": [ "noteId" ], "type": "object", "properties": { "noteId": { "type": "string", "format": "uuid" } } } } } }
Error received:
ERROR: ../test_sdk/lib/src/client.dart:384:29: Error: Member not found: 'List.fromJson'. ERROR: return GetNotesResponse.fromJson(_jsonDecode(r)); ERROR: ^^^^^^^^ ERROR: Target kernel_snapshot failed: Exception
The text was updated successfully, but these errors were encountered:
@tablet0ps thanks for the issue, will take a look and report back.
Sorry, something went wrong.
Closes #68 Handle deserialization of arrays and maps
cc20b7a
b41e184
651c67f
walsha2
No branches or pull requests
I am trying to generate client-side code using openapi_spec CLI. In such condition I am unable to compile the generated code. Here's the spec:
Error received:
The text was updated successfully, but these errors were encountered: