blogPostSchema top-level property

ObjectSchema blogPostSchema
final

Generated schema for BlogPost Blog post with author - demonstrates nested models

Implementation

final blogPostSchema = Ack.object({
  'id': Ack.string(),
  'title': Ack.string(),
  'content': Ack.string(),
  'author': enhancedUserSchema,
  'publishedAt': Ack.string(),
  'tags': Ack.list(Ack.string()),
}, additionalProperties: true);