@@ -23,42 +23,42 @@ func (s *Stream) GetSpec() interface{} {
2323// StreamSpec is the spec for a Stream resource
2424type StreamSpec struct {
2525 Name string `json:"name"`
26- Description string `json:"description"`
27- Subjects []string `json:"subjects"`
28- Retention string `json:"retention"`
29- MaxConsumers int `json:"maxConsumers"`
30- MaxMsgsPerSubject int `json:"maxMsgsPerSubject"`
31- MaxMsgs int `json:"maxMsgs"`
32- MaxBytes int `json:"maxBytes"`
33- MaxAge string `json:"maxAge"`
34- MaxMsgSize int `json:"maxMsgSize"`
35- Storage string `json:"storage"`
36- Discard string `json:"discard"`
37- Replicas int `json:"replicas"`
38- NoAck bool `json:"noAck"`
39- DuplicateWindow string `json:"duplicateWindow"` // Maps to Duplicates
40- Placement * StreamPlacement `json:"placement"`
41- Mirror * StreamSource `json:"mirror"`
42- Sources []* StreamSource `json:"sources"`
43- Compression string `json:"compression"`
44- SubjectTransform * SubjectTransform `json:"subjectTransform"`
45- RePublish * RePublish `json:"republish"`
46- Sealed bool `json:"sealed"`
47- DenyDelete bool `json:"denyDelete"`
48- DenyPurge bool `json:"denyPurge"`
49- AllowDirect bool `json:"allowDirect"`
50- AllowRollup bool `json:"allowRollup"` // Maps to RollupAllowed
51- MirrorDirect bool `json:"mirrorDirect"`
52- DiscardPerSubject bool `json:"discardPerSubject"` // Maps to DiscardNewPer
53- FirstSequence uint64 `json:"firstSequence"` // Maps to FirstSeq
54- Metadata map [string ]string `json:"metadata"`
55- ConsumerLimits * ConsumerLimits `json:"consumerLimits"`
56- AllowMsgTTL bool `json:"allowMsgTtl"`
57- SubjectDeleteMarkerTTL string `json:"subjectDeleteMarkerTtl"`
58- AllowMsgCounter bool `json:"allowMsgCounter"`
59- AllowAtomicPublish bool `json:"allowAtomicPublish"`
60- AllowMsgSchedules bool `json:"allowMsgSchedules"`
61- PersistMode string `json:"persistMode"`
26+ Description string `json:"description,omitempty "`
27+ Subjects []string `json:"subjects,omitempty "`
28+ Retention string `json:"retention,omitempty "`
29+ MaxConsumers int `json:"maxConsumers,omitempty "`
30+ MaxMsgsPerSubject int `json:"maxMsgsPerSubject,omitempty "`
31+ MaxMsgs int `json:"maxMsgs,omitempty "`
32+ MaxBytes int `json:"maxBytes,omitempty "`
33+ MaxAge string `json:"maxAge,omitempty "`
34+ MaxMsgSize int `json:"maxMsgSize,omitempty "`
35+ Storage string `json:"storage,omitempty "`
36+ Discard string `json:"discard,omitempty "`
37+ Replicas int `json:"replicas,omitempty "`
38+ NoAck bool `json:"noAck,omitempty "`
39+ DuplicateWindow string `json:"duplicateWindow,omitempty "` // Maps to Duplicates
40+ Placement * StreamPlacement `json:"placement,omitempty "`
41+ Mirror * StreamSource `json:"mirror,omitempty "`
42+ Sources []* StreamSource `json:"sources,omitempty "`
43+ Compression string `json:"compression,omitempty "`
44+ SubjectTransform * SubjectTransform `json:"subjectTransform,omitempty "`
45+ RePublish * RePublish `json:"republish,omitempty "`
46+ Sealed bool `json:"sealed,omitempty "`
47+ DenyDelete bool `json:"denyDelete,omitempty "`
48+ DenyPurge bool `json:"denyPurge,omitempty "`
49+ AllowDirect bool `json:"allowDirect,omitempty "`
50+ AllowRollup bool `json:"allowRollup,omitempty "` // Maps to RollupAllowed
51+ MirrorDirect bool `json:"mirrorDirect,omitempty "`
52+ DiscardPerSubject bool `json:"discardPerSubject,omitempty "` // Maps to DiscardNewPer
53+ FirstSequence uint64 `json:"firstSequence,omitempty "` // Maps to FirstSeq
54+ Metadata map [string ]string `json:"metadata,omitempty "`
55+ ConsumerLimits * ConsumerLimits `json:"consumerLimits,omitempty "`
56+ AllowMsgTTL bool `json:"allowMsgTtl,omitempty "`
57+ SubjectDeleteMarkerTTL string `json:"subjectDeleteMarkerTtl,omitempty "`
58+ AllowMsgCounter bool `json:"allowMsgCounter,omitempty "`
59+ AllowAtomicPublish bool `json:"allowAtomicPublish,omitempty "`
60+ AllowMsgSchedules bool `json:"allowMsgSchedules,omitempty "`
61+ PersistMode string `json:"persistMode,omitempty "`
6262 BaseStreamConfig
6363}
6464
@@ -74,14 +74,14 @@ type StreamPlacement struct {
7474
7575type StreamSource struct {
7676 Name string `json:"name"`
77- OptStartSeq int `json:"optStartSeq"`
78- OptStartTime string `json:"optStartTime"`
79- FilterSubject string `json:"filterSubject"`
77+ OptStartSeq int `json:"optStartSeq,omitempty "`
78+ OptStartTime string `json:"optStartTime,omitempty "`
79+ FilterSubject string `json:"filterSubject,omitempty "`
8080
81- ExternalAPIPrefix string `json:"externalApiPrefix"`
82- ExternalDeliverPrefix string `json:"externalDeliverPrefix"`
81+ ExternalAPIPrefix string `json:"externalApiPrefix,omitempty "`
82+ ExternalDeliverPrefix string `json:"externalDeliverPrefix,omitempty "`
8383
84- SubjectTransforms []* SubjectTransform `json:"subjectTransforms"`
84+ SubjectTransforms []* SubjectTransform `json:"subjectTransforms,omitempty "`
8585}
8686
8787type RePublish struct {
0 commit comments