Commit graph

223 commits

Author SHA1 Message Date
Irvine Sunday f723b671d8
Adds discriminator support to OpenApi (#54)
* 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>
2020-03-25 09:50:00 -07:00
Irvine Sunday af05aa66bb Refactoring code to pick the configurable pageable operation name 2020-03-23 20:27:51 +03:00
Irvine Sunday a9aac32b4b Adding config setting for the pageable operation name 2020-03-23 20:26:22 +03:00
Irvine Sunday dd11818c1b Documentation text update 2020-03-23 20:25:57 +03:00
Irvine Sunday 5ab49e14e3 Code refactoring to conditionally set pagination 2020-03-23 19:53:01 +03:00
Irvine Sunday 148a1df873 Adding pagination config settings 2020-03-23 19:51:31 +03:00
Irvine Sunday b7a3ab76f1 Removing unnecessary using directive 2020-03-19 11:16:13 +03:00
Irvine Sunday 81f1815e81 Removing unnecessary quotation marks 2020-03-19 11:02:23 +03:00
Irvine Sunday 32093e38e4 Adding pagination extension to navigation properties to collection of entities 2020-03-19 11:01:28 +03:00
Irvine Sunday ec8207fea7 Adding the odata.nextlink response object 2020-03-16 19:09:36 +03:00
Irvine Sunday baf8986a4b Adding the pageable extension 2020-03-16 12:56:28 +03:00
Irvine Sunday adfdd59faa Adding the pageable constant string 2020-03-16 12:51:35 +03:00
Sam Xu 755bc347f6 Change the nuget script to output .NET 472 2020-01-24 12:55:44 -08:00
Sam Xu b08a65691a Small changes to make sure the cahced item is same 2020-01-23 16:57:06 -08:00
Sam Xu 3d62ec44e6 Change to .Net Framework version 4.7.2 because 4.6.1 is not recommended 2020-01-23 16:40:57 -08:00
Irvine Sunday c65ddf83bf Allows capturing of NavigationProperty descriptions 2020-01-21 11:54:48 -08:00
Sam Xu 14be0b681d Update all the docs and fix the PoliCheck complain 2020-01-14 16:42:41 -08:00
mur b6f952e08e Adding methods from parent classes in to children classes 2020-01-15 01:20:03 +03:00
Sam Xu 6676093a3c
Update Microsoft.OpenAPI.OData.Reader.Release.nuspec 2019-11-21 13:48:42 -08:00
Sam Xu 1d7e7e0823 Rename the operationId for operation import 2019-10-10 13:39:51 -07:00
Sam Xu 6377ee0d47 Change the OperationId for function/functionImport 2019-10-10 11:35:39 -07:00
Sam Xu fe608056a4 Enable auto-generate the Version from Custom build task 2019-10-03 16:35:05 -07:00
Sam Xu a20aabf999 adjust the build scripts 2019-10-03 10:44:44 -07:00
Sam Xu 35e53bb35e Update to ODL 7.6.1 and add some build scripts 2019-10-03 09:51:35 -07:00
Sam Xu 35a35a5f56 Enable Uri escape function call 2019-09-26 12:57:15 -07:00
Sam Xu 5e3db101cf Fix issue #42: duplicate path parameters should be prevented 2019-09-25 14:44:02 -07:00
Sam Xu 1589b2622a Update to ODL.Edm 7.6.1.beta: Permission, Custom Heads, etc 2019-09-24 16:06:15 -07:00
Sam Xu f362c34e31 Fix issue #36: Response object needs type property to identify collections 2019-08-13 13:00:12 -07:00
mispeer 2ff03dd401 Change encryption for fips compliance (#38)
* On Servers where FIPS compliance is enabled, use of MD5 encryption will fail for any usage in .NET

Changing to FIPS compliant SHA256

* Fix typo
2019-08-05 19:52:57 -07:00
Sam Xu 0879ed37c6 more code cleanup 2019-06-28 11:46:00 -07:00
Sam Xu 5a1efcc08e Add tests for record expression extensions 2019-06-28 11:28:17 -07:00
Sam Xu d728c0c007 Codes cleanup in TermAttribute 2019-06-28 10:28:13 -07:00
Sam Xu d28ed09238 Switch to use the latest Capabilities vocabulary, enable permission 2019-06-27 17:06:53 -07:00
Sam Xu e2f6af09c8 Update to OData.Edm v7.6 2019-06-20 10:50:55 -07:00
mispeer c25df986ac Users/mispeer/serialize nullable references for v2 (#34)
* 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
2019-06-19 14:27:48 -07:00
Michael Speer db3c3e886c Fix issue #29: Action responses not serialized the return type 2019-05-10 13:52:52 -07:00
Sam Xu 37f49c4e3d Add test cases for multiple schemas edm model 2019-05-10 10:42:10 -07:00
Sam Xu fc35e1f272 Change the capabilities 2019-04-15 10:37:07 -07:00
Sam Xu cf8fb692e6 add more terms and types in capabilities 2019-04-11 16:32:21 -07:00
Sam Xu 25c65a1191 Add an extenstion method for Uri escape function 2019-04-10 14:40:25 -07:00
Sam Xu c56cc0db5c Update part of capablities and authorizations 2019-04-05 11:38:57 -07:00
Sam Xu d1f07eb1b5 Update to OData.Edm 7.6.beta 2019-04-02 10:23:34 -07:00
Sam Xu 3a1e56b25c Change the operationId generate rule for edm operation 2019-03-27 16:06:31 -07:00
Sam Xu c249cc53f3 update the reference and fix the failed test cases 2019-02-27 10:22:37 -08:00
Brecht Debaere fd12df0436 Update Microsoft.OpenApi to latest to solve DateTimeOffset serialization. 2019-02-27 09:14:58 -08:00
Brecht Debaere f512881069 Change value to DateTime.MinValue as example. 2019-02-27 09:14:58 -08:00
Brecht Debaere 48f2327512 Add more types to examples. 2019-02-27 09:14:58 -08:00
Sam Xu 958bce59e9 Chang the example in schema to match the schema descriptions. 2019-02-05 09:58:32 -08:00
ZykovAleksandrZykovAleksandr 2e92323b3f fix some misspellings in README.md 2018-10-15 11:39:29 -07:00
Behnam Emamian 4838e2b75f set $select, $orderby and #expand as comma-separated values 2018-10-12 10:30:19 -07:00
Behnam Emamian 8418bbdb99 set $top example 2018-10-12 10:28:16 -07:00
Sam Xu 9e3306e76d Modify the ODataPathProvider 2018-09-24 11:05:55 -07:00
Sam Xu 174b5ab14b add the response example for operation and remove unused the json/yaml files 2018-09-21 12:39:58 -07:00
Sam Xu f5dc3f8987 add a graph v1.0 product xml 2018-09-21 11:54:34 -07:00
Sam Xu b162884a3f Add the HttpRequest for operation (import) and response example 2018-09-20 16:36:44 -07:00
Sam Xu 74f41bdd47 change the readonly property as => 2018-09-20 10:06:29 -07:00
Sam Xu e6527b3acb small comments change 2018-09-19 11:04:28 -07:00
Sam Xu 8e08dfd687 update the output folder 2018-09-18 17:06:39 -07:00
Sam Xu f9e3763500 Clean the codes and add the example to the components 2018-09-18 16:28:44 -07:00
Sam Xu cd28ba34c4 update the nuget spec file 2018-09-18 15:36:13 -07:00
Sam Xu 669c054fb4 Make the target framework align 2018-09-18 15:28:09 -07:00
Sam Xu 5348ea25f2 Modify the codes 2018-09-18 14:35:57 -07:00
Sam Xu fdebe42a71 Modify the bug for Operation path 2018-09-17 17:16:51 -07:00
Sam Xu 39da108afd Modify the Open Api convert settings 2018-09-17 16:00:36 -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 de9ed86bee Modify the Authorization provider 2018-09-11 16:05:07 -07:00
Sam Xu 8495c737b7 modify the HttpRequest annotation and add test cases 2018-09-11 10:58:32 -07:00
Sam Xu 5a2a2af9ae Change the oneOf to anyOf for Double/Single/Int64 2018-08-29 10:30:21 -07:00
Sam Xu f38b9d3ec0 add test cases for ODataKeySegment key parameters 2018-08-28 16:14:17 -07:00
Sam Xu 0f8b01df3e refactor the operation handler 2018-08-28 15:47:44 -07:00
Sam Xu 009ca7fef3 Continue on the PathItemHandler and test cases 2018-08-27 17:11:50 -07:00
Sam Xu 5d9614464f add the comments for the ICapabilitiesRestriction 2018-08-23 17:28:38 -07:00
Sam Xu 13ca340cc0 refactor for the capabilities and modify the test cases 2018-08-23 17:27:14 -07:00
Sam Xu 91f8fb371a Change the capablities classes and refactor the singleton path item handler 2018-08-22 14:40:54 -07:00
Sam Xu 0fc0d2e308 small comment changes for path item handler 2018-08-21 15:00:36 -07:00
Sam Xu de09400c41 rename the ODataPathType.cs to ODataPathKind.cs 2018-08-21 14:43:32 -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 095a1fc130 Update Microsoft.OpenApi version 1.1.0 2018-08-16 13:14:55 -07:00
Sam Xu 55f8619027 Add the entity type name prefix for Id key 2018-08-16 11:54:05 -07:00
Sam Xu 4142dd9112 small changes for the new syntax 2018-08-16 10:09:09 -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
Sam Xu de49eeea75 update the version to beta2 2018-05-30 11:30:55 -07:00
Sam Xu dd72df735e update to latest OpenApi dll and add the key as segment into context 2018-01-29 15:46:19 -08:00
Sam Xu 25851ec64e add the KeyAsSegmentSupported capabilities annotation 2018-01-26 17:58:00 -08:00
Sam Xu 69431503c5 Make OperationId output by default and use the Camel Case format 2018-01-24 17:16:55 -08:00
Sam Xu 34e8d3fcf4 apply the indexablebykey and add some inline functions in restriction 2018-01-24 17:05:48 -08:00
Sam Xu a6e12d3249 add the insert, update restriction for the navigation property 2018-01-24 16:58:04 -08:00
Sam Xu b044b7e9e0 apply the delete, update, insert restriction on the entity set path item generator 2018-01-24 16:52:11 -08:00
Sam Xu 3b0b61565c remove unused method in Capabilites restriction 2018-01-24 16:36:13 -08:00
Sam Xu f7f9f98f8f Modify Batch, Top, Skip, IndexableByKey support restriction and Sort Restriction, add unit tests 2018-01-23 16:00:15 -08:00
Sam Xu b00cd0ee26 modify FilterRestrictions and add unit tests 2018-01-23 14:49:36 -08:00
Sam Xu 29b8a910ed Modify Insert & Update restrictions and add unit tests 2018-01-23 14:30:26 -08:00
Sam Xu 2f1ed28186 Modify DeleteRestrictions and add unit tests 2018-01-23 14:10:24 -08:00
Sam Xu d19de45b33 modify ExpandRestrictions and add unit tests 2018-01-23 13:45:29 -08:00