-
Notifications
You must be signed in to change notification settings - Fork 252
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
[DRAFT] 2.0 upgrade guide working doc #2298
Conversation
@martincostello Hi Martin! Please refer to this as a work in progress, upgrade guide. We will work on this in the open and keeping adding to it as we have more preview bits added. Please let us know if you have any feedback or questions or if we are missing anything you'd like more info on. |
@RachitMalik12 Thanks for providing this. I've made various suggested edits to the current content. My main feedback so far based on my (still ongoing) move in Swashbuckle would be to have a dedicated section showing how the reference handling has changed with the type checks. For example the need to do things like: public void ProcessSchema(IOpenApiSchema schema)
{
if (schema is OpenApiSchema concrete)
{
// Do something
}
else if (scheme is OpenApiSchemaReference reference)
{
// Do something else
}
} I'll be sure to leave any additional feedback that might be useful once I've gotten Swashbuckle working with the preview7 (as that's what ASP.NET Core 10 preview 2 is compiled against). |
I've also been tripped up by - if (schema.Type == JsonSchemaTypes.Array)
+ if (schema.Type is { } type && type.HasFlag(JsonSchemaTypes.Array)) People might miss this and introduce subtle bugs if they just one-to-one map the strings to the values like: - if (schema.Type == "array")
+ if (schema.Type == JsonSchemaTypes.Array) |
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Martin Costello <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
|
Hey @martincostello, Also, one concern I have is that the version you are using (preview7) is a few months old and we've made some more updates since then, @captainsafia what is the roadmap for moving ASP.NET to a more later preview? I just worry if some of the issues you encounter during your upgrade are fixed in the later previews, so you don't need to spend the extra time in fixing it.
|
ASP.NET Core 10 Preview 3 shipped yesterday, so I'm now up to preview.11. Due to breaking changes in subsequent previews there are constraints on how far forwards I can jump in my own code before I hit a "compatibility wall". |
yes the goal is that once the initial file is merged we can:
|
@martincostello, now that this is merged, would you mind going ahead and proposing your changes as a PR please? |
No description provided.