Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data: set several minLength to 1 #1479

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
data: set several minLength to 1
For migrating records from Virtua: Sets the
minimum length of the following fields to 1 character:
* patron.city
* patron.postal_code
* patron.street
* item.barcode

Co-Authored-by: Aly Badr <aly.badr@rero.ch>
  • Loading branch information
Aly Badr committed Nov 23, 2020
commit 4a419e40eedc4b06fc4cd0d7d62debebd14387bb
2 changes: 1 addition & 1 deletion rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"barcode": {
"title": "Barcode",
"type": "string",
"minLength": 4,
"minLength": 1,
"form": {
"focus": true,
"validation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@
"title": "Street",
"description": "Street and number of the address.",
"type": "string",
"minLength": 3
"minLength": 1
},
"postal_code": {
"title": "Postal code",
"type": "string",
"minLength": 4
"minLength": 1
},
"city": {
"title": "City",
"type": "string",
"minLength": 3
"minLength": 1
},
"phone": {
"title": "Phone number",
Expand Down