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

Class name and accents #480

Open
jota-coelho opened this issue Sep 11, 2023 · 3 comments
Open

Class name and accents #480

jota-coelho opened this issue Sep 11, 2023 · 3 comments
Labels
added to backlog The issue was added to backlog area:client This item is related to the client extension pinned Issues and PRs that must not stale

Comments

@jota-coelho
Copy link

jota-coelho commented Sep 11, 2023

Hi Folks...
I have problems with descriptions in openapi file, when I have words with accents

This is a piece of my openapi.json

...

  "host": "localhost",
  "basePath": "/portalrh/v10",
  "tags": [
    {
      "name": "Portal do Funcionário",
      "x-internal-name": "portalFuncionario",
      "description": "portalFuncionario"
    }
  ],
  ....
  "paths": {
    "/folha": {
      "get": {
        "x-factor-ccs": 1,
        "tags": [
          "Portal do Funcionário"
        ],
        "summary": "Obter dados da folha do funcionário",
        "operationId": "ObterFolha",
        "parameters": [
          {
            "name": "empresa",
            "in": "header",
            "required": true,
            "type": "string",
            "description": "Código da empresa"
          },
          {
            "in": "query",
            "name": "usuario",
            "type": "string",
            "required": true,
            "description": "CPF do funcionário"
          }
        ],
...

With this file, I get this generated class (PortalDoFuncionrioApi)
My expectation was that the generated class would be (PortalDoFuncionarioApi)

@ricardozanini
Copy link
Member

Hi! Thanks for reporting it. We can filter the strings before passing them to the template engine. It's a fairly easy fix to do if you're willing to send a PR.

@jota-coelho
Copy link
Author

Hi! I will try fix this in my next free time. Thanks

Copy link
Contributor

@ricardozanini @hbelmiro This is being labeled as Stale.

@github-actions github-actions bot added the Stale label Nov 13, 2023
@hbelmiro hbelmiro added added to backlog The issue was added to backlog pinned Issues and PRs that must not stale and removed Stale labels Nov 13, 2023
@ricardozanini ricardozanini added the area:client This item is related to the client extension label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
added to backlog The issue was added to backlog area:client This item is related to the client extension pinned Issues and PRs that must not stale
Projects
None yet
Development

No branches or pull requests

3 participants