Closed rlespinasse closed 3 years ago
The content of this pull-request is currently used at my previous work. A first code review / pair programming on some parts have being done by @denouche (thanks to him)
Related to #18
Can I close this one @rlespinasse ?
The specification format is available at http://jsonapi.org/format/ Support
jsonapi
tags during the generation phase.Support status of
top-level
membersdata
is supported,includes
is supported (skip it with--without-jsonapi-includes
),errors
objects can be handle byjson
tags (with anErrorObject
and anErrorsPayload
components).meta
,jsonapi
,links
are not supported.For a given
Foo
object, the use ofjsonapi
tags will generated all components needed to represent thejsonapi
format of this object.Foo
as a resource objectFooAttributes
FooCollection
: as an array of resource objectsFooData
FooIdentifier
: as a resource identifier objectFooIdentifierCollection
: as an array of resource identifier objectsFooIdentifierData
FooRelationships
Others contents needed for this support
make test
will run openapi-parser against various datasets,string
attribute in ajson
tag (dataset/jsontags
),yaml
tag of theserver
struct,json
,jsonapi
, andvalidate
tags separately,Items
fromSchema
now support a single string value OR a array ofSchema
,