You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2024. It is now read-only.
With the new MSON work in #42, the syntax for referencing another representation in a representation data is:
@api-data director (\Mill\Examples\Showtimes\Representations\Person) - Director
This is fine, but it's a bit... wordy. It would be nice if instead of that you could just do:
@api-data director (Person) - Director
Where Person is being pulled from the @api-label annotation atop the \Mill\Examples\Showtimes\Representations\Person class.
The major problem I see with handling this is that this would require that we parse out representations first, so we have that label data in memory for lookups.
The text was updated successfully, but these errors were encountered:
@api-return and @api-throws are getting a new MSON-like syntax with this change:
Old:
@api-return:public {object} \Mill\Examples\Showtimes\Representations\Theater
@api-throws:public {404} \Mill\Examples\Showtimes\Representations\Error If the movie could not be found.
@api-throws:public {404} \Mill\Examples\Showtimes\Representations\CodedError (\Mill\Examples\Showtimes\Representations\CodedError::DISALLOWED) +BUY_TICKETS+ {movie,theater}
New:
@api-return:public (object, Theater)
@api-throws:public (404, Error) If the movie movie could not be found.
@api-throws:public (404, Coded Error, 666, BUY_TICKETS) {movie,theater}
This also means that we'll no longer support any FQDN error codes. Unfortunate, but necessary to move past just supporting PHP.
With the new MSON work in #42, the syntax for referencing another representation in a representation data is:
This is fine, but it's a bit... wordy. It would be nice if instead of that you could just do:
Where
Person
is being pulled from the@api-label
annotation atop the\Mill\Examples\Showtimes\Representations\Person
class.The major problem I see with handling this is that this would require that we parse out representations first, so we have that label data in memory for lookups.
The text was updated successfully, but these errors were encountered: