Skip to content
New issue

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

Problem handling arrays/lists #30

Open
justjoheinz opened this issue Nov 29, 2023 · 0 comments
Open

Problem handling arrays/lists #30

justjoheinz opened this issue Nov 29, 2023 · 0 comments

Comments

@justjoheinz
Copy link

Please start the example using:

clackup -s apispec -s ningle ningle/app.lisp

Query the user "database", e.g. with httpie:

http :5000/users

Expected result: an empty array response, like [].
Actual result: NIL is invalid for #<ARRAY {700A657303}>

Query the db for a non-existing user:

http :5000/users/0

Response is correct. User is not found.

Add a user:

http POST :5000/users name=SomeUser

Empty response seems to be correct

Retrieve this user:

http :5000/users/1

Expected result: the json representation of the user SomeUser.
Actual result: #<APISPEC/EXAMPLES/NINGLE/APP::USER {700A1ACF23}> is invalid for #<OBJECT {700B009DA3}>:
Not an association list

Retrieve all users:

http :5000/users

Expected result: json array of all users
Actual result:
(#<APISPEC/EXAMPLES/NINGLE/APP::USER {700A1ACF23}>) is invalid for #<ARRAY {700B009D83}>:
Not an array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant