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

Add model spec format descriptions #39

Merged
merged 2 commits into from
Jun 3, 2015
Merged

Add model spec format descriptions #39

merged 2 commits into from
Jun 3, 2015

Conversation

gracebrownecodes
Copy link
Contributor

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]

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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@bruth
Copy link
Contributor

bruth commented Jun 3, 2015

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]>
@gracebrownecodes
Copy link
Contributor Author

Updated with a new commit, for easy diff reading, although the auto-diff turned out really ugly. Happy to squash once reviewed.

@bruth
Copy link
Contributor

bruth commented Jun 3, 2015

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.

bruth added a commit that referenced this pull request Jun 3, 2015
Add model spec format descriptions
@bruth bruth merged commit ca8995f into chop-dbhi:master Jun 3, 2015
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

Successfully merging this pull request may close these issues.

2 participants