def from_schema(self, schema_node):
params = []<EOL>for param_schema in schema_node.children:<EOL><INDENT>location = param_schema.name<EOL>if location is '<STR_LIT:body>':<EOL><INDENT>name = param_schema.__class__.__name__<EOL>if name == '<STR_LIT:body>':<EOL><INDENT>name = schema_node.__class__.__name__ + '<STR_LIT>'<EOL><DEDENT>param = self.parameter_converter(location,<EOL>param_schema)<EOL>param['<STR_LIT:name>'] = name<EOL>if self.ref:<EOL><INDENT>param = self._ref(param)<EOL><DEDENT>params.append(param)<EOL><DEDENT>elif location in (('<STR_LIT:path>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT:GET>')):<EOL><INDENT>for node_schema in param_schema.children:<EOL><INDENT>param = self.parameter_converter(location, node_schema)<EOL>if self.ref:<EOL><INDENT>param = self._ref(param)<EOL><DEDENT>params.append(param)<EOL><DEDENT><DEDENT><DEDENT>return params<EOL>
Creates a list of Swagger params from a colander request schema.

:param schema_node:
    Request schema to be transformed into Swagger.
:param validators:
    Validators used in colander with the schema.

:rtype: list
:returns: List of Swagger parameters.