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:
@@ -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
|
||||
Reference in New Issue
Block a user