Skip to content

Conversation

garethj-msft
Copy link
Member

Fixed paths when Operation is bound to a type derived from the type of a nav prop.

Added a setting to make this (and navSource inheritance too) require DerivedTypeConstraint in the model, as it can produce a lot of extra paths if nav props are very weakly typed.

Added tests to match.

Support local reference files in file-based csdl in the library and command-line tool.
…he type of a nav prop.

Added a setting to make this require DerivedTypeConstraint in the model, as it can produce a lotr of extra paths if nav props are very weakly typed.

Added tetss to match.
/// <param name="settings">The conversion settings.</param>
/// <returns>The collection of built <see cref="ODataPath"/>.</returns>
IEnumerable<ODataPath> GetPaths(IEdmModel model);
IEnumerable<ODataPath> GetPaths(IEdmModel model, OpenApiConvertSettings settings);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. But, I am ok to add this.

xuzhg pushed a commit that referenced this pull request Feb 11, 2021
@xuzhg
Copy link
Contributor

xuzhg commented Feb 11, 2021

Merged at e176372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EdmOperations bound to derived types of navigation properties are missed from the generated document.

2 participants