proto-loader icon indicating copy to clipboard operation
proto-loader copied to clipboard

Ignores syntax declaration

Open escholtz opened this issue 9 years ago • 0 comments

It appears that this loader might ignore syntax declarations (unless I'm using it wrong?).

At the top of my foo.proto I have:

syntax = "proto3";

This gets ignored / dropped by proto-loader.

As a temporary work around, I'm using:

var schema = require('./foo.proto');
schema.syntax = "proto3";

escholtz avatar Feb 24 '16 07:02 escholtz