-
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Allow custom operations to return a different class than the expected resource class #2861
Allow custom operations to return a different class than the expected resource class #2861
Conversation
teohhanhui
commented
Jun 14, 2019
•
edited
edited
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #2855, api-platform/api-platform#1172 |
License | MIT |
Doc PR | N/A |
b2c623b
to
5af92ed
Compare
this obviously begs the question, what is |
db0a45d
to
a7433d4
Compare
a7433d4
to
9223ebb
Compare
/** | ||
* @var string | ||
*/ | ||
private $amount; |
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.
Not mapped as Doctrine MongoDB ODM does not have a decimal type. I'm not sure what's the right thing to do here... If I use type="float"
, the type validation fails during denormalization.
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.
@@ -2,10 +2,13 @@ Feature: Custom operation | |||
As a client software developer | |||
I need to be able to create custom operations | |||
|
|||
Background: |
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.
oh this is nice, does this allow to add steps to every scenario?
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.
Yeah.
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.
Is the strict parameter still used?
No. But I don't think we should deprecate it either? There are tests that use it so it's at least covered. |
Hmm yeah leave it like this, at first I thought that this class was |