Commit graph

12 commits

Author SHA1 Message Date
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
Sam Xu 4a22d78201 Fix the failed test cases 2019-02-05 10:03:42 -08:00
Sam Xu 5a2a2af9ae Change the oneOf to anyOf for Double/Single/Int64 2018-08-29 10:30:21 -07:00
Sam Xu 1b8d685dc7 Merge Graph changes into Master branch 2018-08-08 10:18:01 -07:00
Sam Xu 7588eb08de Update to Open API library on Nuget.org and resolve the conflicts 2017-12-20 11:44:43 -08:00
Sam Xu a759876b48 Add the IEEE754Compatible options for Decimal and Int64 type 2017-12-08 11:50:35 -08:00
Sam Xu 4ee734ffd3 resolve the comments 2017-12-05 18:28:34 -08:00
Sam Xu ee232f9523 modify the schema for Geo*, Property, etc 2017-12-01 15:11:18 -08:00
Sam Xu ac4e7dc56e clean the schema for property 2017-11-30 16:20:28 -08:00
Sam Xu 2a98c209a6 1. Modify to use ODL api for the vocabulary. 2. Change the Schema for entity & complex type. 3. Add unit test for schema on structured type. 2017-11-30 14:30:44 -08:00
Sam Xu 5ee41ab4df Move the functions to OpenApiSchemaGenerator and add unit test for the Enum type schema 2017-11-30 11:09:02 -08:00
Sam Xu 4e8357aa5e Move to generator and change the logic 2017-11-21 18:32:29 -08:00
Renamed from test/Microsoft.OpenAPI.OData.Reader.Tests/OpenApiSchemaGeneratorTests.cs (Browse further)