This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you can build some javascript library which consumes the output of this library.
npm install @shko.online/dataverse-odataWebAPI on the @shko.online/componentframework-mock package.