- Timestamp:
- 06/04/2020 04:41:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-test-controller.php
r47753 r47911 40 40 'type' => 'string', 41 41 'description' => 'A pretty string.', 42 'minLength' => 3, 43 'maxLength' => 3, 44 'pattern' => '[a-zA-Z]+', 42 45 'context' => array( 'view' ), 43 46 ), 44 47 'someinteger' => array( 45 'type' => 'integer', 46 'context' => array( 'view' ), 48 'type' => 'integer', 49 'minimum' => 100, 50 'maximum' => 200, 51 'exclusiveMinimum' => true, 52 'exclusiveMaximum' => true, 53 'context' => array( 'view' ), 47 54 ), 48 55 'someboolean' => array( … … 94 101 'default' => 'a', 95 102 ), 103 'somearray' => array( 104 'type' => 'array', 105 'items' => array( 106 'type' => 'string', 107 ), 108 'context' => array( 'view' ), 109 ), 110 'someobject' => array( 111 'type' => 'object', 112 'additionalProperties' => array( 113 'type' => 'string', 114 ), 115 'properties' => array( 116 'object_id' => array( 117 'type' => 'integer', 118 ), 119 ), 120 'ignored_prop' => 'ignored_prop', 121 'context' => array( 'view' ), 122 ), 96 123 ), 97 124 );
Note: See TracChangeset
for help on using the changeset viewer.