Skip to content
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

Change endpoint #5

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Change endpoint #5

merged 3 commits into from
Sep 20, 2024

Conversation

yekovalenkoa
Copy link
Contributor

No description provided.

@yekovalenkoa yekovalenkoa force-pushed the change-endpoint branch 2 times, most recently from 64ddbb5 to 82c7b65 Compare September 17, 2024 14:16
@yekovalenkoa yekovalenkoa marked this pull request as ready for review September 17, 2024 14:18
@yekovalenkoa yekovalenkoa marked this pull request as draft September 17, 2024 14:21
@yekovalenkoa yekovalenkoa marked this pull request as ready for review September 18, 2024 07:59
@yekovalenkoa yekovalenkoa marked this pull request as draft September 18, 2024 09:09
@yekovalenkoa yekovalenkoa force-pushed the change-endpoint branch 3 times, most recently from d05db85 to ab6b341 Compare September 18, 2024 11:55
@yekovalenkoa yekovalenkoa marked this pull request as ready for review September 18, 2024 11:56
Copy link
Member

@mglowala mglowala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could tag or branch the previous version of the library before merging it into the main, in case someone needs it for the last version on the API

public readonly string $street,
public readonly string $streetNo,
public readonly string $zipCode,
public readonly string $floor,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this property be nullable? Otherwise, will it default to an empty string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an empty string by default

$data['data'],
);

return new self(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I changed it

@yekovalenkoa
Copy link
Contributor Author

Maybe we could tag or branch the previous version of the library before merging it into the main, in case someone needs it for the last version on the API

The last tag/release 1.0.1 is the same as main branch, no difference.

composer.json Outdated
"symfony/property-access": "6.4.*",
"symfony/property-info": "6.4.*",
"symfony/serializer": "6.4.*",
"webmozart/assert": "^1.11"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is not require for this PR don't bump min versions in requiresection
This is public library, maybe someone has symfony 6.1 for example

Answear\FanCourierBundle\Logger\FanCourierLogger:
shared: false

Answear\FanCourierBundle\Client\RequestTransformerInterface: '@Answear\FanCourierBundle\Client\RequestTransformer'
Answear\FanCourierBundle\Client\RequestTransformerInterface: '@Answear\FanCourierBundle\Client\RequestTransformer'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image


public function supportsNormalization($data, $format = null): bool
{
return is_object($data) && $this->isEmptyClass($data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this, and indeed no normalizer is needed for normalizing requests.

@yekovalenkoa yekovalenkoa merged commit 3a1e152 into main Sep 20, 2024
4 checks passed
@yekovalenkoa yekovalenkoa deleted the change-endpoint branch September 20, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants