* Refactor similar code into one function; add fix for responses for primitive types
* Add new param to method and add tests for this
* Update test files
* Address PR review suggestion
* Use content property in collection-valued & structured parameters
Add content property and a media type object to indicate that the parameters are serialized as JSON
* Adds test for CreateParameters
Co-authored-by: Sam Xu <saxu@microsoft.com>
* - adds code owners for the repository so people are added automatically to PR reviews
* Update .github/CODEOWNERS
Co-authored-by: Irvine Sunday <40403681+irvinesunday@users.noreply.github.com>
Co-authored-by: Irvine Sunday <40403681+irvinesunday@users.noreply.github.com>
* Update response schema of action/functions that return a collection
* Update Title to use entity type name for the previous segment
* Update test files data appropriately
* 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
* 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
* 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>
* Set Explode property to false for Style: Form
* Add tests for creating OrderBy, Select, Expand parameters
* Rename test method for clarity
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
* Remove example property in Parameters
This helps in avoiding duplication with examples property. They are mutually exclusive. DocumentationURL prop. which used to be set in example property is now set within descriptions property.
* Update src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
* Remove duplicate variable declaration
* Minor refactoring
To help trigger build
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
Co-authored-by: Sam Xu <saxu@microsoft.com>
* Include EntityType name of ODataKeySegment in Action/Function paths
This helps in preventing potential duplicate operationIds in entity vs entityset functions/actions
* Update tests to validate action/function duplicate operationId fix
* Update test files' action/function operationIds
* Redesign how we retrieve the segment identifiers
* Update test files in line with new segment retrieval redesign
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
* 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.