-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Special char doesn't show in @apiGroup #163
Comments
Fixed in 0.9.0 |
Great! Thanks a lot! |
Hi, even updating this module the problem still happening in @api {get} /autenticacao Autenticação will output: Another example is when your group has more than one word, like this example: @api {get} /pagamento/codigo Pagamento com código de barras will output: |
Can't reproduce the error, the output is correct. |
This is my api example project: https://github.com/caio-ribeiro-pereira/apidoc-example And these are the outputs:
[
{
"type": "delete",
"url": "/logout",
"title": "Logout",
"group": "Autentica__o",
"success": {
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "status",
"description": "<p>Mensagem de saída do sistema</p> "
}
]
},
"examples": [
{
"title": "Sucesso",
"content": " HTTP/1.1 200 OK\n {\n \"status\": \"Você saiu do sistema!\"\n }",
"type": "json"
}
]
},
"version": "0.0.0",
"filename": "./app.js",
"groupTitle": "Autentica__o",
"name": "DeleteLogout"
},
{
"type": "get",
"url": "/signin",
"title": "Singin",
"group": "Autentica__o",
"success": {
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "status",
"description": "<p>Mensagem de acesso autorizado</p> "
}
]
},
"examples": [
{
"title": "Sucesso",
"content": " HTTP/1.1 200 OK\n {\n \"status\": \"Logado!\"\n }",
"type": "json"
}
]
},
"version": "0.0.0",
"filename": "./app.js",
"groupTitle": "Autentica__o",
"name": "GetSignin"
},
{
"type": "post",
"url": "/signup",
"title": "Signup",
"group": "Autentica__o",
"success": {
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "status",
"description": "<p>Mensagem de cadastro efetuado</p> "
}
]
},
"examples": [
{
"title": "Sucesso",
"content": " HTTP/1.1 200 OK\n {\n \"status\": \"Cadastrado!\"\n }",
"type": "json"
}
]
},
"version": "0.0.0",
"filename": "./app.js",
"groupTitle": "Autentica__o",
"name": "PostSignup"
},
{
"type": "put",
"url": "/pagamento/:codigo",
"title": "Pagamento com código de barras",
"group": "Pagamentos",
"success": {
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "String",
"optional": false,
"field": "status",
"description": "<p>Mensagem de dados atualizados</p> "
}
]
},
"examples": [
{
"title": "Sucesso",
"content": " HTTP/1.1 200 OK\n {\n \"status\": \"Dados atualizados!\"\n }",
"type": "json"
}
]
},
"version": "0.0.0",
"filename": "./app.js",
"groupTitle": "Pagamentos",
"name": "PutPagamentoCodigo"
}
]
{
"name": "apidoc-example",
"version": "0.0.1",
"description": "Api Node/Express que utiliza ApiDoc.js",
"title": "ApiDoc Example",
"generator": {
"version": "0.9.1",
"time": "2014-12-16T12:16:45.460Z"
},
"apidoc": "0.2.0"
} |
Thx, it is the group title
Solution: define once and use a name without special chars
|
vi /usr/local/lib/node_modules/apidoc/node_modules/apidoc-core/lib/workers/api_group.js Found about this string on line 83 then you can use special chars Forgive me, my English is very bad |
Hi, I'm using apidoc.js to write an api documentation in brazilian portuguese language, but when I use chars like "ç", "ã", "é" in a @APIGroup name, the layout hide this chars.
For example, if I set "@APIGroup Autenticação", the layout will show "AUTENTICA O" instead "AUTENTICAÇÃO".
The text was updated successfully, but these errors were encountered: