-
Notifications
You must be signed in to change notification settings - Fork 86
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
IBX-8369: Fix REST LocationList #2445
Conversation
"Message: Unresolved reference 'ProductFilter'" from webapi-parser
type: Ref[] | ||
xml: | ||
name: LocationList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inspired by https://dzone.com/articles/the-x-factor-raml-with-xml-data-format but I don't feel it's the right way. It misses that the "Ref
" nodes are named Location
.
<?xml version="1.0" encoding="UTF-8"?>
<LocationList media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations">
<Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/>
</LocationList>
LocationListXML: | ||
type: LocationRefXML[] | ||
xml: | ||
name: LocationList | ||
properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's like LocationList node shouldn't have properties…
Message: Property 'properties' not supported in a RAML 1.0 array node
<?xml version="1.0" encoding="UTF-8"?>
<LocationList media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations">
<Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/>
</LocationList>
This reverts commit c9e76d0.
…2418) * Ibexa Cloud product guide page added * Content added * Image added * Content & images added * Image fixed * Content added * Vale suggestions * Fixes after review * Content added * Fixes * Updates & content added * Updates * Sentence updated * Content added; fixes * Kafka removed --------- Co-authored-by: Julita Falcon Dusza <[email protected]>
* Mentioned Symfony performance article in the doc * Applied suggestion Co-authored-by: Adrien Dupuis <[email protected]> --------- Co-authored-by: Adrien Dupuis <[email protected]>
* Added documentation about env function for migrations * Changed from tag names to function names
--------- Co-authored-by: julitafalcondusza <[email protected]>
e7c902d
to
b6aa8ab
Compare
# Conflicts: # docs/api/rest_api/rest_api_reference/rest_api_reference.html
Done in #2464 |
The old definition is the one from the PHP class. The REST output has nothing in common with the PHP class:
It's also important to notice that REST
LocationList
is not a list of https://github.com/ibexa/rest/blob/main/src/lib/Server/Output/ValueObjectVisitor/Location.phpNote: Sample case, if the right syntax is found, similar ones could be fixed (BookmarkList , ContentTypeList, UrlAliasRefList ObjectStateGroupList, …)
Checklist