* 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>
* 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.
* Adds Links to EntitySet type response objects
* Adds links to the test OpenAPI docs.
* Refactor to use Utils class for nullability checks
* Modify link generator to handle all instances of IEdmEntityType
* Update arguments
* Add new Link properties
* Update test files with links properties
* Rename parameter
* Fix OpenAPI Link generation
* Reorder Parameters generation before Responses
This is important so that the parameters info can be used for Links generation
* Update test files to validate Link fixes
* Fix links and add optional setting
* Update test for Links
* Revert project PlatformTarget
* Add comment
* Add setting for enabling/disabling showing of schema examples
* Add setting to show schema examples to allow tests to pass
* Update test doc. to test disabling of showing of schema examples
* Refactor to remove unnecessary Link creation of collection of entities
* Revert platform target to default - AnyCPU
* Add helpful comment
* Grammar nit fix
Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
* Adds Links to EntitySet type response objects
* Adds links to the test OpenAPI docs.
* Refactor to use Utils class for nullability checks
* Modify link generator to handle all instances of IEdmEntityType
* Update arguments
* Add new Link properties
* Update test files with links properties
* Rename parameter
* Fix OpenAPI Link generation
* Reorder Parameters generation before Responses
This is important so that the parameters info can be used for Links generation
* Update test files to validate Link fixes
* Fix links and add optional setting
* Update test for Links
* Revert project PlatformTarget
* Add comment
* Refactor to remove unnecessary Link creation of collection of entities
* Revert platform target to default - AnyCPU
* Add helpful comment
* Grammar nit fix
Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
* Adds Links to EntitySet type response objects
* Adds links to the test OpenAPI docs.
* Refactor to use Utils class for nullability checks
* Modify link generator to handle all instances of IEdmEntityType
* Update arguments
* Add new Link properties
* Update test files with links properties
* Rename parameter
Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
* Adding setting for discriminator value support
* Adding the discriminator value constant
* Adding discriminator support during schema generation
Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>