Unverified Commit 6582ecc3 authored by Gregor Adams's avatar Gregor Adams Committed by GitHub

fix(examples): maxlength was inconsistent (#36840)

the value and help-text were irritating
the value of the help-text is now used as value



## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
parent 3674cada
......@@ -7,21 +7,21 @@ const PetSchema = new mongoose.Schema({
type: String,
required: [true, 'Please provide a name for this pet.'],
maxlength: [20, 'Name cannot be more than 60 characters'],
maxlength: [60, 'Name cannot be more than 60 characters'],
},
owner_name: {
/* The owner of this pet */
type: String,
required: [true, "Please provide the pet owner's name"],
maxlength: [20, "Owner's Name cannot be more than 60 characters"],
maxlength: [60, "Owner's Name cannot be more than 60 characters"],
},
species: {
/* The species of your pet */
type: String,
required: [true, 'Please specify the species of your pet.'],
maxlength: [30, 'Species specified cannot be more than 40 characters'],
maxlength: [40, 'Species specified cannot be more than 40 characters'],
},
age: {
/* Pet's age, if applicable */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment