Skip to end of banner
Go to start of banner

Proposed json Patterns

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This page is for json schema properties of type "string" who may (or may not) need a regular expression to help define allowed instances.

Page will be organized into json schemas, and will list all "string" type properties, logical rules for defining those properties, if they need a pattern, and a suggested regular expression for the properties that do need a pattern.

Entity.json

name

Logical Rules

  • Is a word or an email address
  • no whitespace
  • only one word
  • can have non-alphabet characters

Needs Pattern = yes

Suggested Regular Expression =

description

Logical Rules

  • must be a string

Needs Pattern = no

id

Logical Rules

  • represented as a long
  • can only be digits
  • must be a size that will fit into a java long

Needs Pattern = yes

Suggested Regular Expression =

  • No labels