PostParser extracts and validates metadata from Hashnode posts
Transforms a full HashnodePost object into a clean PostMetadata object by extracting only the fields needed for conversion and validating required fields.
Parse a Hashnode post and extract validated metadata
The Hashnode post object to parse
Validated PostMetadata object
Error if required fields are missing or invalid
PostParser extracts and validates metadata from Hashnode posts
Transforms a full HashnodePost object into a clean PostMetadata object by extracting only the fields needed for conversion and validating required fields.