Skip to content

Move the metadata from validator factory to the validator.xml file#1113

Merged
dunglas merged 1 commit intoapi-platform:2.0from
sroze:move-the-validator-metadata
May 15, 2017
Merged

Move the metadata from validator factory to the validator.xml file#1113
dunglas merged 1 commit intoapi-platform:2.0from
sroze:move-the-validator-metadata

Conversation

@sroze
Copy link
Contributor

@sroze sroze commented May 15, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ø
License MIT
Doc PR ø

As the validator as a dev dependency, it won't necessary be installed when using ApiPlatform's "pack" and Symfony Flex. Still, the validator is a dependency to get the metadata from its component: moving this definition to the validator.xml file that is only included when the validator component exists fixes the problem.

soyuka
soyuka approved these changes May 15, 2017
@soyuka soyuka mentioned this pull request May 15, 2017
1 task
@soyuka
Copy link
Member

soyuka commented May 15, 2017

Hmm phpstan errors are not related. I'll fix those in another patch. They may be the consequence of a phpstan upgrade.

@soyuka
Copy link
Member

soyuka commented May 15, 2017

@sroze you can rebase if you want, should fix phpstan :)

@meyerbaptiste
Copy link
Member

IMO you should change the base branch to 2.0.

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

👍 but can you rebase to 2.0?

@dunglas
Copy link
Member

dunglas commented May 15, 2017

Btw, the API pack includes the validator: https://github.com/api-platform/api-pack/blob/master/composer.json#L17

Anyway this PR must be merged.

@sroze sroze force-pushed the move-the-validator-metadata branch from ed8f685 to 52a4509 Compare May 15, 2017 15:37
@sroze sroze changed the base branch from master to 2.0 May 15, 2017 15:37
@sroze
Copy link
Contributor Author

sroze commented May 15, 2017

Rebased and targeted on 2.0 😉

@dunglas dunglas merged commit 69050d3 into api-platform:2.0 May 15, 2017
@dunglas
Copy link
Member

dunglas commented May 15, 2017

Thank you @sroze!

hoangnd25 pushed a commit to hoangnd25/core that referenced this pull request Feb 23, 2018
…tadata

Move the metadata from validator factory to the validator.xml file
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.

5 participants