code: func NewMediaTypesWriter(filename string) (*MediaTypesWriter, error) {
  	file, err := codegen.SourceFileFor(filename)
  	if err != nil {
  		return nil, err
  	}
  	return &MediaTypesWriter{SourceFile: file, Validator: codegen.NewValidator()}, nil
  }
docs: // NewMediaTypesWriter returns a contexts code writer.
  // Media types contain the data used to render response bodies.