Skip to content

Commit

Permalink
fix(schema): make current field for slugs required (#6205)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Apr 4, 2024
1 parent da49af0 commit e420b6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sanity/src/core/schema/types/slug.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {type Rule} from '@sanity/types'

export default {
title: 'Slug',
name: 'slug',
Expand All @@ -7,6 +9,7 @@ export default {
name: 'current',
title: 'Current slug',
type: 'string',
validation: (Rule: Rule): Rule => Rule.required(),
},
{
// The source field is deprecated/unused, but leaving it included and hidden
Expand Down

0 comments on commit e420b6f

Please sign in to comment.