18.01.2015 Views

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B.3.4<br />

String Types<br />

Strings are specified in Orderly using the string type specifier. Strings in JSONSchema support "minLength"<br />

and "maxLength" properties, which are represented in Orderly using curly braces immediately after the type:<br />

string{4,12} login;<br />

Omission of a specification of either minimum or maximum is allowed:<br />

string{4,} login; # login requires at least 4 chars<br />

string{,32} name; # name may not be longer than 32 chars<br />

Regular expressions are supported in JSONSchema for string values. In Orderly you may directly provide<br />

a regular expression using '/' syntax to denote the beginning and end of the regular expression:<br />

string mood /^((happy)|(sad)|(meh))$/;<br />

B.3.5<br />

Number and Integer types<br />

Numbers are specified in Orderly using the number type specifier. In JSONSchema numbers and integers<br />

support ranges, in Orderly these ranges for numbers are specified in the same way we specify ranges for<br />

strings:<br />

number{0.02, 0.98} numNum;<br />

integer{0,10} rating<br />

Syntactically, numbers in Orderly follow the same rules as numbers in JSON.<br />

B.3.6<br />

Boolean Types<br />

Boolean types are represented in Orderly using the boolean type specifier:<br />

boolean iShouldStay;<br />

B.3.7<br />

Object Types<br />

Objects are represented in Orderly using the object type specifier:<br />

object {<br />

string foo;<br />

integer bar;<br />

number baz;<br />

};<br />

Object definitions may be "closed", meaning that properties that are not explicitly mentioned are not allowed,<br />

or "open". A trailing star (*) indicates an "open" object defintion:<br />

object {<br />

string foo;<br />

# whatever other properties you want, thanks to that star<br />

}*;<br />

<strong>CMIS</strong>-v<strong>1.1</strong>-csprd01<br />

Standards Track Work Product<br />

Copyright © OASIS Open 2012. All Rights Reserved.<br />

18 August 2012<br />

Page 320 of 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!