-
Notifications
You must be signed in to change notification settings - Fork 331
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
Cannot define JSON Schema Array of Objects #2052
Comments
@ardatan Defaulting |
@ddcollins Did you solve the issue? |
I had an |
Maybe we should be able to handle nullish values in string interpolation. Thank you for your explanation :) |
Describe the bug
I cannot define type of
[Achievement]
with JSON schema.To Reproduce
I've been unsuccessful in being able to define a return of an array of objects.
My base schema defines:
But I get the error:
I've also tried:
and get the above
match
error.I've also tried defining an array of items in a schema file:
./src/json-schemas/achievements-api/achievements.response.json
With mesh file definition of:
but I get Mesh error:
Expected behavior
A response type of
[Achievement]
can be defined.Environment:
node:14.15-alpine
I tried updating json schema version and is broken in latest as well.
The text was updated successfully, but these errors were encountered: