You are here

constant JsonApiSpec::MEMBER_NAME_GLOBALLY_ALLOWED_CHARACTER_CLASS in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::MEMBER_NAME_GLOBALLY_ALLOWED_CHARACTER_CLASS

Member name: globally allowed characters.

U+0080 and above (non-ASCII Unicode characters) are allowed, but are not URL-safe. It is RECOMMENDED to not use them.

A character class, for use in regular expressions.

See also

http://jsonapi.org/format/#document-member-names-allowed-characters

http://php.net/manual/en/regexp.reference.character-classes.php

File

src/JsonApiSpec.php, line 37

Class

JsonApiSpec
Defines constants used for compliance with the JSON API specification.

Namespace

Drupal\jsonapi

Code

const MEMBER_NAME_GLOBALLY_ALLOWED_CHARACTER_CLASS = '[a-zA-Z0-9\\x{80}-\\x{10FFFF}]';