validateDeclarativePublisherEntityV2()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Validates a stored v2 document, document template or page template, named by the bare id the declarative API stores. It runs the sdk-model validator, and an issue on the reference is reported on id.
export declare function validateDeclarativePublisherEntityV2(entity: unknown, kind: DeclarativePublisherEntityKindV2): IPublisherValidationIssueV2[];
Parameters
Parameter | Type | Description |
|---|---|---|
entity | unknown | |
kind |
Returns
Remarks
The declarative API stores no type, so the kind is passed next to the entity. Every key the declarative API does not store for that kind is reported. An id starting with default. is reported, except on a page template flagged isDefault: that is one of the backend’s defaults.