Closed darkwatchuk closed 3 weeks ago
Looks like it should've been an enum: https://github.com/nats-io/jwt/blob/ed3fbfa49a16cf4aced84aed9d527be532730ad4/v2/types.go#L55-L64
// ExportType defines the type of import/export.
type ExportType int
const (
// Unknown is used if we don't know the type
Unknown ExportType = iota
// Stream defines the type field value for a stream "stream"
Stream
// Service defines the type field value for a service "service"
Service
)
edit: fix is on its way
That's great - many thanks.
Observed behavior
When creating an account the NSC tool uses a string for type when doing an export
Currently in this library it's defined as an int
Expected behavior
Should be able to set a string for export type.
Library version
1.0.0 preview 3
Host environment
No response
Steps to reproduce
No response