@require_authorization
    def post(self):
        """Create a new profile of the specified type.

        This is specific to pytentd, and is similar to PUT /profile/<schema>.

        TODO: Document this!
        TODO: This doesn't appear to be covered by any tests
        """
        if not request.json() in 'schema':
            raise APIBadRequest("A profile schema is required.")
        return jsonify(Profile(entity=g.entity, **request.json()).save())
dataset/ETHPy150Open pytent/pytentd/tentd/blueprints/entity.py/ProfilesView.post/swapped operands of `in`