@@ -43,7 +43,7 @@ TextLineFieldValue:
4343 text :
4444 type : " String"
4545 description : " String representation of the value"
46- resolve : " @=value"
46+ resolve : " @=value.text "
4747 interfaces : [FieldValue]
4848
4949ImageFieldValue :
@@ -187,7 +187,7 @@ EmailAddressFieldValue:
187187 text :
188188 type : " String"
189189 description : " String representation of the value"
190- resolve : " @=value"
190+ resolve : " @=value.email "
191191
192192FloatFieldValue :
193193 type : object
@@ -197,17 +197,7 @@ FloatFieldValue:
197197 text :
198198 type : " String"
199199 description : " String representation of the value"
200- resolve : " @=value"
201-
202- ISBNFieldValue :
203- type : object
204- config :
205- interfaces : [FieldValue]
206- fields :
207- text :
208- type : " String"
209- description : " String representation of the value"
210- resolve : " @=value"
200+ resolve : " @=value.value"
211201
212202IntegerFieldValue :
213203 type : object
@@ -217,7 +207,7 @@ IntegerFieldValue:
217207 text :
218208 type : " String"
219209 description : " String representation of the value"
220- resolve : " @=value"
210+ resolve : " @=value.value "
221211
222212KeywordFieldValue :
223213 type : object
@@ -227,6 +217,7 @@ KeywordFieldValue:
227217 text :
228218 type : " String"
229219 description : " String representation of the value"
220+ # @todo will fail, array to string conversion
230221 resolve : " @=value"
231222
232223MapLocationFieldValue :
@@ -256,7 +247,27 @@ MediaFieldValue:
256247 text :
257248 type : " String"
258249 description : " String representation of the value"
259- resolve : " @=value"
250+ resolve : " @=value.uri"
251+ hasController :
252+ type : " Boolean"
253+ description : " If the media has a controller when being displayed."
254+ resolve : " @=value.hasController"
255+ autoplay :
256+ type : " Boolean"
257+ description : " If the media should be automatically played."
258+ resolve : " @=value.autoplay"
259+ loop :
260+ type : " Boolean"
261+ description : " If the media should be played in a loop."
262+ resolve : " @=value.loop"
263+ height :
264+ type : " Int"
265+ description : " Height of the media."
266+ resolve : " @=value.height"
267+ width :
268+ type : " Int"
269+ description : " Width of the media."
270+ resolve : " @=value.widht"
260271
261272PriceFieldValue :
262273 type : object
@@ -315,6 +326,10 @@ RichTextFieldValue:
315326 type : " String"
316327 description : " String representation of the value"
317328 resolve : " @=value"
329+ plaintext :
330+ type : " String"
331+ description : " Plain text representation of the value, without tags."
332+ resolve : " @=resolver('RichTextXmlToPlainText', [value.xml.plain_text])"
318333 html5 :
319334 type : " String"
320335 description : " HTML5 representation."
0 commit comments