There isn't any specific documentation, because your data layer's schema is probably unique to your business' needs.
What you should do is to understand the fields that are required in the XDM schema, and then map your data layer's variables to that schema. Ultimately, you must send a key-value object that conforms to the XDM schema to Web SDK, in order for Adobe Experience Platform to accept it.