Skip to content

Commit c3a221a

Browse files
committed
skipping pubNumber validation for OM_PUBTYPE
1 parent cd7cd6f commit c3a221a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/common.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,10 @@ export function validateHead(head, logger) {
184184
if(metadata.pubDateTime === null)
185185
fatal(logger, "pubDateTime must be present if the document is in pub state.");
186186

187-
if (metadata.pubNumber === null)
188-
logger.error("pubNumber must be specified if the document is in pub state.");
187+
if (metadata.pubNumber === null) {
188+
if (metadata.pubType !== OM_PUBTYPE)
189+
logger.error("pubNumber must be specified if the document is in pub state.");
190+
}
189191
}
190192

191193
/* specific to OM */

0 commit comments

Comments
 (0)