Commit graph

316 commits

Author SHA1 Message Date
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 f87c2b4951
- updates basic open api integration test for $count
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 16:03:00 -05:00
Vincent Biret 032fbaefb4
- fixes a bug where the operation id for count operations would not be unique
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 15:38:40 -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
Vincent Biret 76cfc303bc
- switches to a referenced schema for count operations
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:38 -05:00
Vincent Biret 2fee91b384
- code linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:38 -05:00
Vincent Biret ae11d65007
- fixes #129 a bug where odata count paths would be missing from the description
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:38 -05:00
Vincent Biret f08be6482f
- code linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:37 -05:00
Vincent Biret 960b31b350
- code linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:37 -05:00
Vincent Biret 70aefe98a1
- adds update docs to solution file so debug works properly
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:37 -05:00
Vincent Biret d2bb4bd008
- adds launch configuration for update docs tool
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:36 -05:00
Vincent Biret 883ca922db
- pattern matching refactoring
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-22 14:42:36 -05:00
Vincent Biret 094bf81732
- upgrades dependencies to avoid dependabot salvo after merge 2021-11-22 14:39:44 -05:00
Vincent Biret 0073118250 Merge branch 'master' into feature/net5 2021-11-22 16:40:22 +00:00
Vincent Biret 948fbc6d4c
- removes obsolete file after conversion 2021-11-22 10:55:41 -05:00
Vincent Biret ac209a55a3
- removes obsolete file after conversion 2021-11-22 10:55:13 -05:00
Vincent Biret 4a29091fce
Merge pull request #138 from microsoft/feature/projects-cleanup
feature/projects cleanup
2021-11-19 10:04:09 -08:00
Sam Xu 37b222f426 Add SourceLink, Remove non-yaml build badge, Update Nuget dependency
version
2021-11-19 09:41:54 -08:00
Vincent Biret 9073743d90
- bumps everything to net6 for supportability
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-19 11:19:41 -05:00
Vincent Biret 336a7dba80
- fixes csproj encoding 2021-11-19 11:13:58 -05:00
Vincent Biret 1d0f0d7e71
- update util to net5 2021-11-19 11:13:58 -05:00
Vincent Biret ecf4f39109
- converts gui app to net5
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-19 11:13:57 -05:00
Vincent Biret 32069a0ad9
- upgrades update docs tool to net5 and removes net 5 copy 2021-11-19 11:13:57 -05:00
Vincent Biret d0b3cc1618
- bumps to net6 2021-11-19 11:12:39 -05:00
Vincent Biret a83d3111df
Merge pull request #135 from microsoft/dependabot/nuget/Microsoft.OData.Edm-7.9.4
Bump Microsoft.OData.Edm from 7.6.1 to 7.9.4
2021-11-19 07:48:44 -08:00
Vincent Biret 7b3fa55a20
- upgrades unit test project to net5 to keep support 2021-11-19 10:43:45 -05:00
dependabot[bot] fdf8d233c6
Bump Microsoft.OData.Edm from 7.6.1 to 7.9.4
Bumps Microsoft.OData.Edm from 7.6.1 to 7.9.4.

---
updated-dependencies:
- dependency-name: Microsoft.OData.Edm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 21:21:54 +00:00
Sam Xu c0d60793a6
Update versioning.props 2021-11-18 10:44:10 -08:00
dependabot[bot] af532f71b9
Bump Microsoft.OpenApi from 1.2.2 to 1.2.3 (#134)
Bumps [Microsoft.OpenApi](https://github.com/Microsoft/OpenAPI.NET) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/Microsoft/OpenAPI.NET/releases)
- [Commits](https://github.com/Microsoft/OpenAPI.NET/compare/1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: Microsoft.OpenApi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-18 10:43:16 -08:00
Irvine Sunday 226ce62303
Fixes response objects for operations that return single primitive type values (#127)
* 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
2021-11-18 21:27:16 +03:00
Irvine Sunday 03b6000a84
Fixes structured & collection-valued parameters of functions (#133)
* 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>
2021-11-18 09:42:34 -08:00
Vincent Biret 73ad41ec0e - adds a dependabot configuration to keep dependencies up to date 2021-11-18 09:39:25 -08:00
Vincent Biret cd36d59f7b - adds vs code configuration to the repository 2021-11-18 09:39:02 -08:00
Vincent Biret 75f293ef08
- adds code owners for the repository so people are added automatically to PR reviews (#131)
* - 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>
2021-11-18 09:38:29 -08:00
Sam Xu b3245711f3
Update versioning.props 2021-10-07 09:29:58 -07:00
Irvine Sunday da7f51abbf
Resolves response schemas of actions/functions that return collection (#117)
* 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
2021-09-21 12:05:41 +03: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
Irvine Sunday 72cd85d3ae
Set parameters' explode property to false (#108)
* 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>
2021-07-09 09:55:32 -07:00
Sam Xu 9f55c250a1
Update versioning.props 2021-05-06 09:50:48 -07:00
Irvine Sunday b1fed423ab
Describes path operations descriptions from vocabulary annotations (#104)
* Add support for operation descriptions and update tests

* Update tests for Entityset paths operations descriptions

* Code cleanup

* Update test OpenAPI output files.

Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2021-05-04 17:36:03 -07:00
Irvine Sunday 9d6bdd5ae0 Add async await to make UI more responsive 2021-05-04 17:35:42 -07:00
Jukka Snellman 830eb357c7 add support for EdmTypeKind.TypeDefinition 2021-04-19 09:22:40 -07:00
Sam Xu 5531eb3c3c 1. Update the version to 1.0.7
2. Add PublicApi analyzier
3. Add config for ShowMsDocGroupPath
2021-04-13 10:04:06 -07:00
Irvine Sunday 4c685b568b
Fix: Removes example property in path parameter objects (#92)
* 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>
2021-04-09 13:40:52 -07:00
Irvine Sunday 32e673eea0
Fixes potential duplicate operationIds in action/function paths (#98)
* 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>
2021-04-09 13:38:59 -07:00
Sam Xu b4d3ae36af Add key and operation (function) parameter mapping 2021-02-10 17:45:14 -08:00