-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add model spec format descriptions #39
Conversation
Model spec format descriptions (including the native csv format) are added to both the README and the service's index template. Signed-off-by: Aaron Browne <[email protected]>
|
||
## Persistent CSV Format | ||
|
||
Data model descriptions are stored persistently in this repository in csv format for portability and human readability. Each data model has its own directory with versions of the model in subdirectories. Each version has at least `definitions` and `schema` directories and, optionally, a `constraints` directory and `indexes.csv` and `references.csv` files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize CSV (in the whole document). I will describe a couple of implementation details:
- The
datamodel.json
file is what signals that a data model exists in the current directory a subdirectory - From the service's standpoint, directories don't actually matter. Files are detected based on signature of the CSV header. That being said, it is still good to describe a convention to follow so contributors don't need to make the decisions themselves and each repository becomes familiar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved below noted description of datamodel.json
up to the top, with a note about the non-necessity of directories. Trying to walk that fine line of setting a convention without misleading.
This is great. Thank you for taking the time and putting this together. |
Responded to @bruth's comments and added more links so users can "walk through" the CSV storage example as they read. Closes #28 Signed-off-by: Aaron Browne <[email protected]>
Updated with a new commit, for easy diff reading, although the auto-diff turned out really ugly. Happy to squash once reviewed. |
Great. One of things that is needed is a set of files (a template) with each file type (see #42). That will be linked off from this README once in place. |
Add model spec format descriptions
Model spec format descriptions (including the native csv format) are
added to both the README and the service's index template.
Signed-off-by: Aaron Browne [email protected]