jsonapi included array
See original GitHub issueI apologize if this has been asked and answered but I cannot seem to get this to work
responses:
'200':
description: returns a jsonapi driver object
content:
'application/vnd.api+json':
schema:
type: object
properties:
data:
$ref: '#/components/schemas/driver'
included:
type: array
items:
enum:
- $ref: '#/components/schemas/account'
- $ref: '#/components/schemas/reservation-term'
- $ref: '#/components/schemas/term-agreement'
- $ref: '#/components/schemas/mobile-device'
- $ref: '#/components/schemas/driver-notification'
meta:
type: object
properties:
jwt:
type: string
subdomain:
type: string
In the example above it does not error, but it displays an array with a single empty {}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
JSON:API — Latest Specification (v1.1)
In a compound document, all included resources MUST be represented as an array of resource objects in a top-level included member. Every ...
Read more >Render an array with JSONAPI and Rails - Stack Overflow
In theory, I was suppose to use .serializable_hash to serialize a collection, like ProductSerializer.new(products, { include: [:tags] }).
Read more >JSON API Cheatsheet - Key Shift in Cmd
included. No. When data is not present. Array of resource objects that are either: Related to the primary data and/or; Related to each...
Read more >specifying more than one include query param with [] causes a ...
Problem/Motivation A JSON:API URL with more than one include query ... 187) Drupal\jsonapi\IncludeResolver::toIncludeTree(Object, Array) ...
Read more >jsonapi - Go Packages
Package jsonapi provides a serializer and deserializer for ... In other words, there will be no, "included", array in the json all ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MikeRalphson @webron @darrelmiller I think we can close this as answered? (and by “we” I mean “you” 😃
thank you for the very fast response