@platformatic/sql-json-schema-mapper 1.20.2 → 1.21.0

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -108,7 +108,8 @@ function mapSQLEntityToJSONSchema (entity, ignore = {}, noRequired = false) {
108
108
  title: entity.name,
109
109
  description: `A ${entity.name}`,
110
110
  type: 'object',
111
- properties
111
+ properties,
112
+ additionalProperties: false
112
113
  }
113
114
 
114
115
  if (required.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/sql-json-schema-mapper",
3
- "version": "1.20.2",
3
+ "version": "1.21.0",
4
4
  "description": "Map SQL entity to JSON schema",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "snazzy": "^9.0.0",
21
21
  "standard": "^17.1.0",
22
22
  "why-is-node-running": "^2.2.2",
23
- "@platformatic/sql-mapper": "1.20.2"
23
+ "@platformatic/sql-mapper": "1.21.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "code-block-writer": "^12.0.0",