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

escapar texto para usar como ID de entidad #54

Closed
rg2011 opened this issue Feb 1, 2023 · 1 comment
Closed

escapar texto para usar como ID de entidad #54

rg2011 opened this issue Feb 1, 2023 · 1 comment

Comments

@rg2011
Copy link
Collaborator

rg2011 commented Feb 1, 2023

En el contexto de https://github.com/telefonicasc/webusage-vertical/pull/15#discussion_r1091579111 se comentó la conveniencia de añadir a la librería una función para escapar una cadena de texto, de forma que el resultado se pueda usar como ID de una entidad NGSI.

La función eliminaría o reemplazaría todos los caracteres prohibidos en un ID de entidad, especificados aquí: https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#general-syntax-restrictions

Aquí hay un snippet del tipo de función que estaríamos hablando: https://gist.github.com/rg2011/641703016c4f1951913826984b447b58

Una vez tuviéramos esta función, habría que modificar las siguientes ETLs para usarla:

@fgalan
Copy link
Contributor

fgalan commented May 8, 2023

Fixed by PR #61

@fgalan fgalan closed this as completed May 8, 2023
fgalan added a commit that referenced this issue May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants