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

commons.j2 :: make | xsd type formatting detect the value type or try out converting it #87

Open
mpo-vliz opened this issue Jul 25, 2024 · 0 comments
Labels
feature question Further information is requested

Comments

@mpo-vliz
Copy link
Contributor

we currently expect the type to produce is known and directed from the template - i.e. passed as the argument | xsd('int') will lead to type-assessment + addition of ^^xsd:int

however, we can think about cases where the data itself is typed (as a python int, float, ... datetime, ...) and something like | xsd('auto') could be used to indicate we want to have the python type detected and converted into the matching ^^xsd format

additionally, we could also know about all values to be strings (as they come from csv, yml, json, or xml sources) and ask the template to try out applying a certain order of conversions | xsd('try', ['int', ...] ) to take the first one that actually matches

@mpo-vliz mpo-vliz added question Further information is requested feature labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant