bug (cornered, but not fixed): resource schema / json conversion