Skip to content

[BUG] sortParamsByRequiredFlag error on https://api.openapi-generator.tech for /api/gen/clients/{language} where language=c #21136

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

Open
5 of 6 tasks
SamuelMarks opened this issue Apr 23, 2025 · 0 comments

Comments

@SamuelMarks
Copy link

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Image
{
  "sortParamsByRequiredFlag": {
    "opt": "sortParamsByRequiredFlag",
    "description": "Sort method arguments to place required parameters before optional parameters.",
    "type": "boolean",
    "optValue": null,
    "default": "true",
    "enum": null
  },
  "sortModelPropertiesByRequiredFlag": {
    "opt": "sortModelPropertiesByRequiredFlag",
    "description": "Sort model properties to place required parameters before optional parameters.",
    "type": "boolean",
    "optValue": null,
    "default": "true",
    "enum": null
  },
  "ensureUniqueParams": {
    "opt": "ensureUniqueParams",
    "description": "Whether to ensure parameter names are unique in an operation (rename parameters that are not).",
    "type": "boolean",
    "optValue": null,
    "default": "true",
    "enum": null
  },
  "allowUnicodeIdentifiers": {
    "opt": "allowUnicodeIdentifiers",
    "description": "boolean, toggles whether unicode identifiers are allowed in names or not, default is false",
    "type": "boolean",
    "optValue": null,
    "default": "false",
    "enum": null
  },
  "prependFormOrBodyParameters": {
    "opt": "prependFormOrBodyParameters",
    "description": "Add form or body parameters to the beginning of the parameter list.",
    "type": "boolean",
    "optValue": null,
    "default": "false",
    "enum": null
  },
  "legacyDiscriminatorBehavior": {
    "opt": "legacyDiscriminatorBehavior",
    "description": "Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).",
    "type": "boolean",
    "optValue": null,
    "default": "true",
    "enum": {
      "true": "The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.",
      "false": "The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing."
    }
  },
  "disallowAdditionalPropertiesIfNotPresent": {
    "opt": "disallowAdditionalPropertiesIfNotPresent",
    "description": "If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.",
    "type": "boolean",
    "optValue": null,
    "default": "true",
    "enum": {
      "false": "The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.",
      "true": "Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default."
    }
  },
  "enumUnknownDefaultCase": {
    "opt": "enumUnknownDefaultCase",
    "description": "If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.",
    "type": "boolean",
    "optValue": null,
    "default": "false",
    "enum": {
      "false": "No changes to the enum's are made, this is the default option.",
      "true": "With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case."
    }
  },
  "hideGenerationTimestamp": {
    "opt": "hideGenerationTimestamp",
    "description": "Hides the generation timestamp when files are generated.",
    "type": "string",
    "optValue": null,
    "default": "true",
    "enum": null
  },
  "useJsonUnformatted": {
    "opt": "useJsonUnformatted",
    "description": "Use cJSON_PrintUnformatted instead of cJSON_Print when creating the JSON string.",
    "type": "string",
    "optValue": null,
    "default": "false",
    "enum": null
  }
}
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant