Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Commit

Permalink
fix yaml syntax, update README for conformance/
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeypants committed Aug 31, 2015
1 parent e85b2f4 commit 9cd0fcd
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 22 deletions.
7 changes: 5 additions & 2 deletions conformance/README
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
This directory contains files with a .crit extension

These .crit files are in yaml format.
These .crit files are in yaml format:
* 'text' is the content that appears in checklist and guidance pages
* 'level' is a keyword as defined in IETF RFC 2119 (but lower case preffered)
* 'parent' is the path-like label of the information node that provides context for the criteria. File extensions are dropped, (e.g. html, rst. or md), spaces and underscores are equivalent, and case insensitive.

Their names are unimportant, but have been chosen to make it easy to find the one you want to edit. This is a bit of a problem.
File name of .crit files are ignored, but have been chosen to make it easy to find the one you want to edit. This is a bit of a problem, but exists to support inferior markdown workflows (rst worklows will generate random filenames, because .crit files will be generated from admonition type directives, and application workflows will have primary key identifiers).

Their content has been coppied from text in the apiguide. The intention is that they could be generated from adminitions (in rst) or kept separately in .crit files (for markdown), or in a app's datastore.

4 changes: 2 additions & 2 deletions conformance/api_survey.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "less than 20% of feedback rates the API as hard to use."
level: should
parent: principles/empathy
level: "should"
parent: "principles/empathy"

4 changes: 2 additions & 2 deletions conformance/divergance_rationale.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "Any divergence from the standards specified in this guide must include a rationale."
level: must
parent: principles/special circumstances
level: "must"
parent: "principles/special circumstances"

4 changes: 2 additions & 2 deletions conformance/new_api_conformance.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "All new or refreshed API development must conform to the standards in this guide."
level: must
parent: principles/standards
level: "must"
parent: "principles/standards"

4 changes: 2 additions & 2 deletions conformance/publish_and_support.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "All APIs are published, documented, and supported."
level: must
parent: principles/documentation
level: "must"
parent: "principles/documentation"

4 changes: 2 additions & 2 deletions conformance/publish_sla.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "All APIs must have a published SLA and should behave accordingly."
level: must
parent: principles/availability
level: "must"
parent: "principles/availability"

4 changes: 2 additions & 2 deletions conformance/retail_wholesale_parity.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "Any function that is available via a retail UI must also be available as a wholesale API."
level: must
parent: principles/functionality
level: "must"
parent: "principles/functionality"

4 changes: 2 additions & 2 deletions conformance/security_controls.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "All APIs must specify their assurance level and must apply the relevant controls."
level: must
parent: principles/security
level: "must"
parent: "principles/security"

4 changes: 2 additions & 2 deletions conformance/single_implementation.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "There should be only one API function for one business outcome (e.g. change an address)."
level: should
parent: principles/granularity
level: "should"
parent: "principles/granularity"

4 changes: 2 additions & 2 deletions conformance/unexpected_behavior.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "No unexpected behaviour from any API in production release."
level: should
parent: principles/errors
level: "should"
parent: "principles/errors"

4 changes: 2 additions & 2 deletions conformance/use_standards.crit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Criteria:
text: "Where an established and widely used information standard exists then it should be used."
level: should
parent: principles/community
level: "should"
parent: "principles/community"

0 comments on commit 9cd0fcd

Please sign in to comment.