source:
  functions:
    - isLoggedIn(): auth.id !== null

  schema:
    ~$projectId:
      type: object
      $permissionId:
        type: object

  access:
    - location: $projectId/
      write: isLoggedIn()

expected: {"rules":{".write":"false",".read":"false","$projectId":{".write":"false",".validate":"false",".read":"false","$permissionId":{".write":"((((!newData.exists()||newData.hasChildren())&&auth.id!==null)))",".read":"false"}}}}