Commit graph

31 commits

Author SHA1 Message Date
Vincent Biret 00b605f9fc
- renames dollar count segment setting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-23 14:01:38 -05:00
Vincent Biret 5d910fd29b
- adds support for reading annotations for count restrictions for count path
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-23 11:37:48 -05:00
Vincent Biret 4093249a19
- adds a setting to globally disable dollar count path items
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-23 10:28:01 -05:00
Vincent Biret 10b99ca357
- updates unit tests for dolarr count fix
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 15:06:11 -05:00
Irvine Sunday 3cce51566f
Skips generation of action/function paths for non-contained nav. props. (#115)
* Do not create actions/functions for non-containment nav. props

* Add test for Function Operations
2021-09-14 23:23:52 +03:00
Irvine Sunday 611067f2d3
[Enhancement] Creates DELETE operation for collection-valued nav. props $ref paths (#112)
* Generate collection nav. prop. entity paths for non-contained nav. props

* Revert previous changes

* Paths with DELETE operations for collection-valued nav. prop. $ref paths

* Don't create extra path for OData Key segment when creating DELETE for $ref

* Update tests

* Update test files

* Minor update to test commit signing

* Another minor update to trigger commit signing

* Update tests appropriately
2021-08-26 22:25:55 +03:00
Irvine Sunday e6a5e52e11
[Fix] Generate paths for stream properties in base types of entities (#110)
* Get all properties declared in type def. including base types

* Update/refactor tests to validate stream props. of base types are captured

* Refactor Handler class to use encapsulation to define navigation sources
2021-08-18 16:33:26 +03:00
Irvine Sunday e8ecb37c96
Fix: Expand containment navigation properties (#94)
* Expand all containment nav props; retrieve Media Entity paths prior to expanding

* Update path count to account for expanded containment nav. props.

* Remove containment in sample CSDL

Expanding workbook nav. props leads to many paths  since the containment levels go very deep

* Check for navigability of navigation props

* Comment correction

* Fix broken tests

* Check whether navigation is allowed to a navigation property

* Update tests; add tests to validate navigability of navigation properties

* Update test CSDL doc. with sample NavigationRestrictions annotations

* Concise code; move declaration closer to usage

Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2021-07-09 09:55:55 -07:00
Gareth Jones e1763727f5 Fix paths when operation is bound to a type derived from the type of a
navigation property. (#88)
2021-02-10 16:07:31 -08:00
Sam Xu f98b9ce40d update the docs 2021-02-05 17:56:46 -08:00
Sam Xu dfbf083d53 Push changes from microsoft graph (#86) 2021-02-05 17:42:10 -08:00
Gareth Jones c1aa5a6f94
Add model reference support to library and command line utility. (#81)
* Support many conversion options in the command-line tool.
Support local reference files in file-based csdl in the library and command-line tool.

* Added tests for references.

* Updates from github review.
2021-01-14 16:56:26 -08:00
Sam Xu a7ee00dbf4 Add Delete to containment navigation property and for non-containment navigation property 2020-05-21 10:58:43 -07:00
Sam Xu 5c185cd67c Add the netcoreapp2.1 into the test project 2020-01-21 14:33:47 -08:00
mur b6f952e08e Adding methods from parent classes in to children classes 2020-01-15 01:20:03 +03:00
Sam Xu 35a35a5f56 Enable Uri escape function call 2019-09-26 12:57:15 -07:00
Sam Xu 5a1efcc08e Add tests for record expression extensions 2019-06-28 11:28:17 -07:00
Sam Xu d28ed09238 Switch to use the latest Capabilities vocabulary, enable permission 2019-06-27 17:06:53 -07:00
Sam Xu 9e3306e76d Modify the ODataPathProvider 2018-09-24 11:05:55 -07:00
Sam Xu 57b66cb983 modify the failed test case 2018-09-17 17:30:42 -07:00
Sam Xu 8a8b2fe103 Modify EdmModelExtensions and add test cases 2018-09-17 13:26:42 -07:00
Sam Xu cecf114328 Modify the path related codes 2018-09-17 13:07:07 -07:00
Sam Xu be14a752d3 modify the ODataPath provider 2018-09-14 17:00:21 -07:00
Sam Xu b0cc50d59f Modify the ODataPath generator process 2018-09-14 10:24:12 -07:00
Sam Xu e4d8bf03d8 fix the problem about Query options should be the same for a resource 2018-09-11 17:22:39 -07:00
Sam Xu 0f8b01df3e refactor the operation handler 2018-08-28 15:47:44 -07:00
Sam Xu b210e2a099 change the segment and path 2018-08-21 14:42:55 -07:00
Sam Xu 95b6994c02 move the error message to resource 2018-08-20 14:38:34 -07:00
Sam Xu 55f8619027 Add the entity type name prefix for Id key 2018-08-16 11:54:05 -07:00
Sam Xu a3a380e269 Modify the Segment classes and add test cases for them 2018-08-08 11:42:59 -07:00
Sam Xu 1b8d685dc7 Merge Graph changes into Master branch 2018-08-08 10:18:01 -07:00