Closed k1LoW closed 1 year ago
- File name of schema data
tbls.schema.json
. Because
.json
.schema
.tbls.schema.json
but tbls.schema.json
schema.json
is common name so it may conflict any file so not schema.json
.(this depends on output path)
- Output path of schema data file
Same directory as the generated schema document
when you run tbls doc
, it may generate a lot of diff in git. So I prefer to have them in one directory.
- File name of schema data
_schema.json
- Output path of schema data file
Same directory as the generated schema document
@atsushi-ishibashi @wate Thanks for your input!!!!!
If you can, I'd appreciate some more input. Of course, if you ignore it, no problem!
@atsushi-ishibashi
schema.json is common name so it may conflict any file so not schema.json.(this depends on output path)
If the directory that outputs the schema data is the same directory as the generated schema document, do you think it would matter if the file name was schema.json
( not tbls.schema.json
)?
@wate
_schema.json
What is the purpose of the _
in the filename?
Do you know of any tools that have a similar strategy?
If the directory that outputs the schema data is the same directory as the generated schema document, do you think it would matter if the file name was schema.json ( not tbls.schema.json )?
yes, it doesn't matter👍
@k1LoW
What is the purpose of the _ in the filename? Do you know of any tools that have a similar strategy?
the reasons are as follows
Thank you all for your input.
I would implement the following
schema.json
explicit file extension.
.json
content guessable file name..schema
I would like it to remain listed first when sorted by file name.
I decided that schema.json is only a file used by the program, so there is no need to make it easy to find.
I don't want to treat it as an invisible file.
Yes
Same directory as the generated schema document
when you run tbls doc, it may generate a lot of diff in git. So I prefer to have them in one directory.
Yes
tbls doc
command is executed.tbls out -t json
even now.tbls ls-tables
).I also want the schema data files to be committed to the repository. I believe this will make tools such as https://github.com/harakeishi/trv more powerful.
I am currently struggling with two points.
schema.json
.schema.json
tbls.schema.json
.tbls.schema.json
tbls.schema
.tbls.schema
If you have any advice or input, I'd love to hear it.