gs-predicate/src/main/scala/gs/predicate/v0/serde/json/JsonKeys.scala

47 lines
1,016 B
Scala

package gs.predicate.v0.serde.json
/** Standard keys for JSON serialization and deserialization.
*/
object JsonKeys:
/** Designates the type of predicate.
*/
val predicateType: String = "predicateType"
/** Used to collect contained predicates for composites such as AND and OR.
*/
val predicates: String = "predicates"
/** Used to represent any value.
*/
val value: String = "value"
/** Used to represent any collection of values.
*/
val values: String = "values"
/** Captures the name of comparison operations.
*/
val name: String = "name"
/** Lower bound of some range.
*/
val lower: String = "lower"
/** Upper bound of some range.
*/
val upper: String = "upper"
/** Represents JSON queries.
*/
val query: String = "query"
/** Represents JSON comparisons.
*/
val comparison: String = "comparison"
/** Used to collect comparisons for composites such as AND and OR.
*/
val comparisons: String = "comparisons"
end JsonKeys