-
-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds a shorter syntax for exposing properties in YML
Assuming you use an exclusion policy ALL, you can now expose properties with a shorter syntax: ``` SomeClass: exclusion_policy: ALL properties: # Before some_property: { expose: true } # After also some_property: ~ ```
- Loading branch information
1 parent
bae3203
commit 5f9fb57
Showing
3 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/JMS/Serializer/Tests/Metadata/Driver/yml/short_expose/Person.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
JMS\Serializer\Tests\Fixtures\Person: | ||
exclusion_policy: ALL | ||
properties: | ||
name: ~ |