You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: fixtures/README.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,18 @@
2
2
3
3
Note that this fixture format is not intended to be used directly, as it has no way of versioning and may change without notice.
4
4
5
-
The [JS Schema](https://github.com/molnarg/js-schema) can be found in the [schema.js](schema.js) file. See there for the details of allowed properties or values. The purpose of this document is to give a high-level overview of the concepts used.
5
+
The purpose of this document is to give a high-level overview of the concepts used. The schema provides all the details about the JSON structure.
6
+
7
+
## Schema
8
+
9
+
The [JS Schema](https://github.com/molnarg/js-schema) can be found in the [schema.js](schema.js) file. It is a declarative way to describe allowed properties and values. The [Fixture Validator](../tests/fixtures-valid.js) automatically checks the fixtures against this schema and does some more tests programatically.
10
+
11
+
The schema exports a property `VERSION`. Everytime the schema is updated, this version needs to be incremented using [semantic versioning](http://semver.org).
12
+
13
+
Given a version number MAJOR.MINOR.PATCH, increment the:
14
+
1. MAJOR version when you make incompatible schema changes,
15
+
2. MINOR version when you add functionality in a backwards-compatible manner, and
16
+
3. PATCH version when you make backwards-compatible bug fixes.
0 commit comments