Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs found in Network.Analytics RP #2333

Merged
merged 7 commits into from
Mar 7, 2024

Conversation

MaryGao
Copy link
Contributor

@MaryGao MaryGao commented Mar 5, 2024

Bugfixes found in Network.Analytics RP

  • Only adopt getEffectiveModelType for anonymous model for modular and RLC
  • Enable readonly when the visibility is only read in modular

fixes #2309 #2310 #2311

@MaryGao MaryGao changed the title Get effictive model bugfix Fix bugs found in Network.Analytics RP Mar 5, 2024
@MaryGao MaryGao marked this pull request as ready for review March 7, 2024 02:56
Copy link
Member

@qiaozha qiaozha left a comment

Choose a reason for hiding this comment

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

LGTM, some minor comments

effective = getEffectiveModelType(program, nonNullOptions[0]);
}
return type as any;
} else {
} else if (type.name === "") {
effective = getEffectiveModelType(program, type, isSchemaProperty);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only apply getEffectiveModelType for anonymous model due to microsoft/typespec#2991 (comment)

@MaryGao MaryGao merged commit 29bd030 into Azure:main Mar 7, 2024
28 checks passed
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.

Visibility handling is inconsistant between RLC and modular which caused property missing failure
2 participants