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

Feature/9621 aspnetcore parameter default values #15753

Commits on Jun 5, 2023

  1. [aspnetcore] OpenAPITools#9621 Adds support for parameter default val…

    …ues in controller methods
    
    - Adds a new option to the aspnetcore generator "useParameterDefaultValues", defaults to false to maintain backwards
      compatability
    - Updates `AspNetCoreServerCodegen` to support default values by; adding an override for `fromOperation()` to sort
      parameters, ensuring that parameters with defaults are at the end, adds an override for `postProcessParameter()` with
      additional logic to make parameters with defaults non-nullable, updates `getNullableType()` logic to make parameters
      with defaults non-nullable
    - Updates `AbstractCSharpCodegen` to remove logic in `updateCodegenParametersEnum()` which makes optional parameters
      nullable
    - Updates `queryParam` template to include default values
    ntwilkie-amici committed Jun 5, 2023
    Copy the full SHA
    d93f3e9 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7e8fb00 View commit details
    Browse the repository at this point in the history
  3. [aspnetcore] OpenAPITools#9621 Removes useParameterDefaultValues to m…

    …ake using default values standard behaviour
    
    - Adds additional documentation to explain why parameters are sorted with defaults at the end
    ntwilkie-amici committed Jun 5, 2023
    Copy the full SHA
    ce1249e View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    cba96ff View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    0cff07f View commit details
    Browse the repository at this point in the history