As I read the spec[1], it should be ok to stick a custom field anywhere
in the doc, but I'm getting these errors with [2]:
Field /prereqs/X_end: Should be a map structure [Spec v1.0.0]
• Field /prereqs/test/X_end: Should be a map structure [Spec v1.0.0]
• Field /prereqs/test/requires/X_end: No value [Spec v1.0.0]
• Field /prereqs/runtime/X_end: Should be a map structure [Spec v1.0.0]
• Field /prereqs/runtime/requires/X_end: No value [Spec v1.0.0]
• Field /prereqs/X_comment: Should be a map structure [Spec v1.0.0]
• Field /prereqs/build/X_end: Should be a map structure [Spec v1.0.0]
• Field /prereqs/build/X_comment: Should be a map structure [Spec v1.0.0]
• Field /prereqs/build/requires/X_end: No value [Spec v1.0.0]
Is that intentional?
(BTW, I'm using X_end so I don't have to screw around with trailing
comma's. X_comment is what you'd think it is.)
[1] Any keys not described in this specification document (whether
top-level or within compound data structures described herein) are
considered custom keys and must begin with an “x” or “X” and be followed
by an underscore; i.e. they must match the pattern: /\Ax_/i. If a custom
key refers to a compound data structure, subkeys within it do not need
an “x_” or “X_” prefix.
[2]
https://github.com/decibel/pg_acl/blob/675124944774ad115590c3b11e72a94028800141/META.json
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble!
http://BlueTreble.com