* 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
* 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>
* 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>
* 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>
* Introduce setting hidden from UI, such that openApiSpec version 2 has the nullable references properly serialized.
AnyOf does not exist in v2, and those references are currently lost.
* Updating existing tests for nullable/schema areas where v2 and v3 differ
Making them theories to properly test both openApi specifications
Adding relevant yaml, json test files
Modifying code to ensure enums and entities also generate openApi with no anyOf for openApi v2 (not supported)
* Fix "Succeeded" typo in output for util
Fix tab spacing in util
Add version setting in util with documentation
* Remove tabs
* Refactor tests to take SpecVersion directly in InlineData
Modify 2 existing tests to test json schema generation by passed spec version