happypdf_json_schema 0.1.4 → 0.1.5
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.
- data/CHANGELOG.md +5 -0
- data/lib/happypdf/version.rb +1 -1
- data/schema/v1.0/pdf.json +18 -2
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/happypdf/version.rb
CHANGED
data/schema/v1.0/pdf.json
CHANGED
@@ -60,9 +60,25 @@
|
|
60
60
|
"href": "api/pdfs",
|
61
61
|
"properties": {
|
62
62
|
"pdt_id":{
|
63
|
-
"title" : "Template",
|
63
|
+
"title" : "PDF Template",
|
64
64
|
"description": "ID of an PDF template to use.",
|
65
|
-
"required": true
|
65
|
+
"required": true,
|
66
|
+
"type": "number"
|
67
|
+
},
|
68
|
+
"data":{
|
69
|
+
"title" : "Data",
|
70
|
+
"description": "The data (text, images) rendered into the placeholder blocks e.g.: {'my-block-name': 'my content', 'firstname': 'Edward'} The object is just a plain hash with the block-name as key and the respecting value.",
|
71
|
+
"type": "object"
|
72
|
+
},
|
73
|
+
"author":{
|
74
|
+
"title" : "PDF Author",
|
75
|
+
"description": "If not set the author is taken from the PDF template setting or falls back to happyPDF.",
|
76
|
+
"type": "string"
|
77
|
+
},
|
78
|
+
"title":{
|
79
|
+
"title" : "PDF title",
|
80
|
+
"description": "If not set the title is taken from the PDF template setting.",
|
81
|
+
"type": "string"
|
66
82
|
}
|
67
83
|
}
|
68
84
|
},
|