waibu-rest-api 2.7.0 → 2.7.1

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.
@@ -129,7 +129,7 @@ async function docSchemaModel ({ model, method, options = {} }) {
129
129
  if (['update'].includes(method)) {
130
130
  const { properties } = await buildPropsReqs.call(this, { model: mdl, method, options })
131
131
  const name = 'model' + mdl.name + 'Update'
132
- delete properties._rel
132
+ delete properties._ref
133
133
  await this.docSchemaLib(name, {
134
134
  type: 'object',
135
135
  properties: omit(properties, ['id'])
@@ -139,7 +139,7 @@ async function docSchemaModel ({ model, method, options = {} }) {
139
139
  if (['replace'].includes(method)) {
140
140
  const { properties, required } = await buildPropsReqs.call(this, { model: mdl, method, options })
141
141
  const name = 'model' + model.name + 'Replace'
142
- delete properties._rel
142
+ delete properties._ref
143
143
  await this.docSchemaLib(name, {
144
144
  type: 'object',
145
145
  properties: omit(properties, ['id']),
@@ -150,7 +150,7 @@ async function docSchemaModel ({ model, method, options = {} }) {
150
150
  if (['create'].includes(method)) {
151
151
  const { properties, required } = await buildPropsReqs.call(this, { model: mdl, method, options })
152
152
  const name = 'model' + model.name + 'Create'
153
- delete properties._rel
153
+ delete properties._ref
154
154
  await this.docSchemaLib(name, {
155
155
  type: 'object',
156
156
  properties,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-rest-api",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "REST API for Waibu",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-22
4
+
5
+ - [2.7.1] bug fix in reference records
6
+
3
7
  ## 2026-03-14
4
8
 
5
9
  - [2.7.0] Accept model's name from ```req.params``` in ```route-by-model-builder.js```