DATAREST-665 - Switched to a more consistent scheme for I18N of JsonSchema.

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.
This commit is contained in:
Oliver Gierke
2015-09-02 10:10:50 +02:00
parent 191f4b69e6
commit b4bbc1d79c
4 changed files with 86 additions and 8 deletions

View File

@@ -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