-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DATAREST-665 - Switched to a more consistent scheme for I18N of JsonS…
…chema. We now use the following keys in the resource bundle to determine values for the title attribute of JSON schema property (in descending order of preference): $fullyQualifiedClassName.$property._title $simpleClassName.$property._title $property._title Also tweaked JsonProperty.format to make sure it always serializes as its toString() value.
- Loading branch information
Showing
4 changed files
with
86 additions
and
8 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
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
15 changes: 14 additions & 1 deletion
15
spring-data-rest-webmvc/src/test/resources/rest-messages.properties
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 |
---|---|---|
@@ -1 +1,14 @@ | ||
rest.description.profile=Profile description | ||
rest.description.profile=Profile description | ||
|
||
# User | ||
# Local property | ||
address._title=Adresse | ||
|
||
# Property on simple type | ||
User.gender._title=Geschlecht | ||
|
||
# Property on fully-qualified property | ||
org.springframework.data.rest.webmvc.mongodb.User.firstname._title=Vorname | ||
|
||
# Local property that should be trumped by the more precise definition above | ||
firstname._title=emanroV |