bajo 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,12 +46,14 @@ class BajoError {
46
46
  const { isString } = this.plugin.app.bajo.lib._
47
47
  const result = {}
48
48
  const me = this
49
+ this.plugin.app.dump(value)
49
50
  each(value, (v, i) => {
50
51
  const print = me.plugin.print
51
52
  if (isString(v)) v = { error: v }
52
53
  if (!v.context) return undefined
53
54
  v.context.message = v.message
54
- if (v.type === 'any.only') v.context.ref = print.write(`field.${get(v, 'context.valids.0.key')}`)
55
+ // if (v.type === 'any.only') v.context.ref = print.write(`field.${get(v, 'context.valids.0.key')}`)
56
+ if (v.type === 'any.only') v.context.ref = get(v, 'context.valids', []).join(', ')
55
57
  const field = get(v, 'context.key')
56
58
  const val = get(v, 'context.value')
57
59
  value[i] = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "A framework to build a giant monstrous app rapidly",
5
5
  "main": "boot/index.js",
6
6
  "scripts": {