bmt 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8f63d37d7567b8009bd97b4f4762bf12ed9561419e33aaf8aff1a5be7886b95
4
- data.tar.gz: 59384b86157f6b45ddd2528510759c08c9afe7b794a420416bfb0b9066e5862f
3
+ metadata.gz: ff2dc8922c0f4b0a0de12d7ed0e8a3dad462839ac393bb590fa107e7ef6dec96
4
+ data.tar.gz: 0b56a54ce3cbc894aab9e26525268ca42ab330c95c7115f344d2a111ddb722b8
5
5
  SHA512:
6
- metadata.gz: 56460d63293b10510e4b0ef5dd7bc08bdfad20fa26234b3550a74bb6e490029e66836d751c2d83e0c0a6d670b7c2310a131351247a12ed2e17c074c86d9cd392
7
- data.tar.gz: 0b4386393e5970030151df3a432d9a5efbbe8466b12e147035318f8a6963545b5f836f948127414e0695dc9740c281d04dcedaa3f43ca90752166717772ede73
6
+ metadata.gz: ad7985d3b24b71b148210ddcecc8426e5b054ff7983a7a9da04ca84f0f9507b7cf9c7b24d71b23a4db6072cd7fdc0244d4b1d2b9a118352644e91cfd7ca65d9f
7
+ data.tar.gz: 408dee385b1603822f99b02bf9787284f23ebe7d28845293d08aa24162a15da5aa2647959f396e0ddfa6d5b7564526351e96e0f9eeefae969c45a40de3beefdb
data/lib/bmt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bmt
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
@@ -0,0 +1,17 @@
1
+ {
2
+ "metadata": {
3
+ "title": "Methodology Taxonomy Template Mapping"
4
+ },
5
+ "content": [
6
+ {
7
+ "methodology": "website_testing",
8
+ "children": [
9
+ {
10
+ "key": "information",
11
+ "attribute": "notes",
12
+ "template": "information.md"
13
+ }
14
+ ]
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Methodology Taxonomy Mapping",
4
+ "description": "Mapping to methodology taxonomy",
5
+ "definitions": {
6
+ "MappingMetadata": {
7
+ "type": "object",
8
+ "properties": {
9
+ "title": {
10
+ "type": "string",
11
+ "pattern": "^[ a-zA-Z0-9\\-+()\/,.<]*$"
12
+ }
13
+ },
14
+ "required": ["title"]
15
+ },
16
+ "BMTKey": { "type": "string", "pattern": "^[a-z_]*$" },
17
+ "Attribute": { "type": "string", "pattern": "^[a-z_]*$" },
18
+ "Template": { "type": "string", "pattern": "[a-z_.]*$" },
19
+ "Mapping": {
20
+ "type": "object",
21
+ "properties": {
22
+ "key": { "$ref": "#/definitions/BMTKey" },
23
+ "attribute": { "$ref": "#/definitions/Attribute" },
24
+ "template" : { "$ref": "#/definitions/Template" }
25
+ },
26
+ "required": ["key", "attribute", "template"],
27
+ "additionalProperties": false
28
+ },
29
+ "MappingParent": {
30
+ "type": "object",
31
+ "properties": {
32
+ "methodology": { "$ref": "#/definitions/BMTKey" },
33
+ "children": {
34
+ "type": "array",
35
+ "items" : {
36
+ "anyOf": [
37
+ { "$ref": "#/definitions/Mapping" }
38
+ ]
39
+ }
40
+ }
41
+ },
42
+ "required": ["methodology", "children"],
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "type": "object",
47
+ "required": ["metadata", "content"],
48
+ "properties": {
49
+ "metadata": {
50
+ "$ref": "#/definitions/MappingMetadata"
51
+ },
52
+ "content": {
53
+ "type": "array",
54
+ "items" : {
55
+ "anyOf": [
56
+ { "$ref": "#/definitions/MappingParent" },
57
+ { "$ref": "#/definitions/Mapping" }
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ }