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

Mgmt schema consolidation #4432

Merged
merged 164 commits into from
May 29, 2024
Merged

Conversation

live1206
Copy link
Member

Consolidate CodeModel.Schema into InputType

Copy link
Member

@m-nash m-nash left a comment

Choose a reason for hiding this comment

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

I didn't see an on / off switch for this. Does that mean this is already on for everything and there are zero diffs?

@live1206
Copy link
Member Author

live1206 commented May 21, 2024

I didn't see an on / off switch for this. Does that mean this is already on for everything and there are zero diffs?

Yes. With swagger input, we have CodeModel.Schema from M4 and we convert all the schema related models into existing input types, which we apply with TypeSpec input. And then, this PR updates all the consumption of CodeModel.Schema to InputType in all modules for the MPG generator.

There are some minor diffs, which I think are acceptable:

@live1206 live1206 merged commit d2e2031 into Azure:feature/v3 May 29, 2024
8 checks passed
@live1206 live1206 deleted the mgmt-schema-consolidation branch May 29, 2024 23:45
@@ -523,18 +464,15 @@ protected override IEnumerable<ObjectTypeProperty> BuildProperties()
var propertiesFromSpec = GetParentPropertyDeclarationNames();
var existingProperties = GetParentPropertySerializedNames();

foreach (var objectSchema in GetCombinedSchemas())
foreach (var property in UpdateInputModelProperties())
Copy link
Member

Choose a reason for hiding this comment

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

well I have some questions on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants