Validation at yang level

Dear Team,

Can we validate read-only (config false) value at yang level before sending to user.
Say for example the Performance value 8888888888 is invalid and its RO is it possible to filter at yang before sending to user/application?

Thanks in advance

Thanks and Regards
Prabhudev

If you are pushing “config false” state data into CDBs operational datastore, for example length, range, or pattern statements will be checked against the data before it is added to the CDB operational datastore using either the CDB API or MAAPI.
A data provider application providing state data to for example a NETCONF client will not be validated against for example length, pattern, or range statements.