@assets.route('<STR_LIT>', methods=['<STR_LIT:POST>'])<EOL>def validate():
assert isinstance(request.json, dict), '<STR_LIT>'<EOL>data = request.json<EOL>assert isinstance(data, dict), '<STR_LIT>'<EOL>if is_valid_dict(data):<EOL><INDENT>return jsonify(True)<EOL><DEDENT>else:<EOL><INDENT>error_list = list()<EOL>for err in list_errors_dict_local(data):<EOL><INDENT>stack_path = list(err[<NUM_LIT:1>].relative_path)<EOL>stack_path = [str(p) for p in stack_path]<EOL>this_err_response = {'<STR_LIT:path>': "<STR_LIT:/>".join(stack_path), '<STR_LIT:message>': err[<NUM_LIT:1>].message}<EOL>error_list.append(this_err_response)<EOL><DEDENT>res = jsonify(error_list)<EOL>return res<EOL><DEDENT>
Validate metadata content.
    ---
    tags:
      - ddo
    consumes:
      - application/json
    parameters:
      - in: body
        name: body
        required: true
        description: Asset metadata.
        schema:
          type: object
    responses:
      200:
        description: successfully request.
      500:
        description: Error