dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
21k stars 4.91k forks source link

Consider generating `releases-index.json` schema with .NET 9 #9418

Open richlander opened 4 months ago

richlander commented 4 months ago

I read about the new JsonSchemaExporter feature. Sounds great.

I also noticed that our JSON schema was generated with different tools and is perhaps out of date.

I took a quick stab at generating a schema using this new feature. It works and I think I was able to do a decent job at replicating much of the original schema.

Should we switch to using our own tools to generate all of our JSON schemas?

My eventual plan is to share all of this code in a more central place, particularly the DotnetRelease project. For many users, I think this project would satisfy pretty much all their needs. Perhaps we could include that in this repo.

@leecow @joeloff @Falco20019 @eiriktsarpalis @nagilson

richlander commented 4 months ago

I updated the schema.

I propose:

I'm happy to do all of this, but want to give someone else first right of refusal to do the first two steps since I'm not the author of the original schema.

Falco20019 commented 3 months ago

Sounds good to me and should help keep the one in the store updated. We just need to make sure the generated one stays compatible and is not breaking anything.

I did a semantic comparison and it has at least those changes: