- Timestamp:
- 10/15/2021 02:03:38 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-test-controller.php
r49246 r51908 37 37 'type' => 'object', 38 38 'properties' => array( 39 'somestring' => array(39 'somestring' => array( 40 40 'type' => 'string', 41 41 'description' => 'A pretty string.', … … 45 45 'context' => array( 'view' ), 46 46 ), 47 'someinteger' => array(47 'someinteger' => array( 48 48 'type' => 'integer', 49 49 'multipleOf' => 10, … … 54 54 'context' => array( 'view' ), 55 55 ), 56 'someboolean' => array(56 'someboolean' => array( 57 57 'type' => 'boolean', 58 58 'context' => array( 'view' ), 59 59 ), 60 'someurl' => array(60 'someurl' => array( 61 61 'type' => 'string', 62 62 'format' => 'uri', 63 63 'context' => array( 'view' ), 64 64 ), 65 'somedate' => array(65 'somedate' => array( 66 66 'type' => 'string', 67 67 'format' => 'date-time', 68 68 'context' => array( 'view' ), 69 69 ), 70 'someemail' => array(70 'someemail' => array( 71 71 'type' => 'string', 72 72 'format' => 'email', 73 73 'context' => array( 'view' ), 74 74 ), 75 'somehex' => array(75 'somehex' => array( 76 76 'type' => 'string', 77 77 'format' => 'hex-color', 78 78 'context' => array( 'view' ), 79 79 ), 80 'someuuid' => array(80 'someuuid' => array( 81 81 'type' => 'string', 82 82 'format' => 'uuid', 83 83 'context' => array( 'view' ), 84 84 ), 85 'someenum' => array( 85 'sometextfield' => array( 86 'type' => 'string', 87 'format' => 'text-field', 88 'context' => array( 'view' ), 89 ), 90 'sometextareafield' => array( 91 'type' => 'string', 92 'format' => 'textarea-field', 93 'context' => array( 'view' ), 94 ), 95 'someenum' => array( 86 96 'type' => 'string', 87 97 'enum' => array( 'a', 'b', 'c' ), 88 98 'context' => array( 'view' ), 89 99 ), 90 'someargoptions' => array(100 'someargoptions' => array( 91 101 'type' => 'integer', 92 102 'required' => true, … … 96 106 ), 97 107 ), 98 'somedefault' => array(108 'somedefault' => array( 99 109 'type' => 'string', 100 110 'enum' => array( 'a', 'b', 'c' ), … … 102 112 'default' => 'a', 103 113 ), 104 'somearray' => array(114 'somearray' => array( 105 115 'type' => 'array', 106 116 'items' => array( … … 112 122 'context' => array( 'view' ), 113 123 ), 114 'someobject' => array(124 'someobject' => array( 115 125 'type' => 'object', 116 126 'additionalProperties' => array(
Note: See TracChangeset
for help on using the changeset viewer.