Skip to content

pema: add JSONType #192

@terrablue

Description

@terrablue

Validate that a value is a JSONValue according to @rcompat/type/JSONValue.
Will be a Storeable and map to a new json DataType (some databases have dedicate columns for JSON; in document-based databases, this can be embedded; otherwise, store as a JSON string in a text column).

Prototyping:

export default class JSONType
  extends PrimitiveType<object, "JSONType">
  implements Storeable<"json"> {

  get datatype() {
    return "json" as const;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions