Skip to content

Commit

Permalink
Add flag isScalarDefaultToNullable
Browse files Browse the repository at this point in the history
  • Loading branch information
NorOldBurden committed Sep 29, 2024
1 parent 791ee93 commit d7f9bbe
Show file tree
Hide file tree
Showing 56 changed files with 11,291 additions and 224 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ telescope({
| `prototypes.useOptionalNullable` | use `(gogoproto.nullable)` values in determining optionality | `true` |
| `prototypes.allowUndefinedTypes` | boolean value allowing `Type`s to be `undefined` | `false` |
| `prototypes.allowEncodeDefaultScalars` | boolean value allowing encoders encoding default values of scalar types. e.g. empty string, 0 or false | `false` |
| `prototypes.isScalarDefaultToNullable` | boolean value set the nullability of scalar types to be required when gogoproto.nullable is not set | `false` |
| `prototypes.optionalQueryParams` | boolean value setting queryParams to be optional | `false` |
| `prototypes.optionalPageRequests` | boolean value setting `PageRequest` fields to optional | `false` |
| `prototypes.addTypeUrlToDecoders` | add $typeUrl field to generated interfaces | `true` |
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/misc/output-base64/gogoproto/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _184 from "./gogo";
import * as _196 from "./gogo";
export const gogoproto = {
..._184
..._196
};
20 changes: 10 additions & 10 deletions __fixtures__/misc/output-base64/google/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _185 from "./api/expr/v1alpha1/eval";
import * as _186 from "./protobuf/any";
import * as _187 from "./protobuf/descriptor";
import * as _188 from "./protobuf/duration";
import * as _189 from "./protobuf/timestamp";
import * as _197 from "./api/expr/v1alpha1/eval";
import * as _198 from "./protobuf/any";
import * as _199 from "./protobuf/descriptor";
import * as _200 from "./protobuf/duration";
import * as _201 from "./protobuf/timestamp";
export namespace google {
export namespace api {
export namespace expr {
export const v1alpha1 = {
..._185
..._197
};
}
}
export const protobuf = {
..._186,
..._187,
..._188,
..._189
..._198,
..._199,
..._200,
..._201
};
}
32 changes: 16 additions & 16 deletions __fixtures__/misc/output-base64/misc/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _190 from "./all_fields";
import * as _191 from "./eval_request";
import * as _192 from "./nest";
import * as _193 from "./tx";
import * as _194 from "./tx.amino";
import * as _195 from "./tx.registry";
import * as _196 from "./tx.rpc.msg";
import * as _197 from "./rpc.tx";
import * as _202 from "./all_fields";
import * as _203 from "./eval_request";
import * as _204 from "./nest";
import * as _205 from "./tx";
import * as _206 from "./tx.amino";
import * as _207 from "./tx.registry";
import * as _208 from "./tx.rpc.msg";
import * as _209 from "./rpc.tx";
export const misc = {
..._190,
..._191,
..._192,
..._193,
..._194,
..._195,
..._196,
..._202,
..._203,
..._204,
..._205,
..._206,
..._207,
..._208,
ClientFactory: {
..._197
..._209
}
};
4 changes: 2 additions & 2 deletions __fixtures__/misc/output-decimals/agoric/gogoproto/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _170 from "./gogo";
import * as _182 from "./gogo";
export const gogoproto = {
..._170
..._182
};
20 changes: 10 additions & 10 deletions __fixtures__/misc/output-decimals/agoric/google/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _171 from "./api/expr/v1alpha1/eval";
import * as _172 from "./protobuf/any";
import * as _173 from "./protobuf/descriptor";
import * as _174 from "./protobuf/duration";
import * as _175 from "./protobuf/timestamp";
import * as _183 from "./api/expr/v1alpha1/eval";
import * as _184 from "./protobuf/any";
import * as _185 from "./protobuf/descriptor";
import * as _186 from "./protobuf/duration";
import * as _187 from "./protobuf/timestamp";
export namespace google {
export namespace api {
export namespace expr {
export const v1alpha1 = {
..._171
..._183
};
}
}
export const protobuf = {
..._172,
..._173,
..._174,
..._175
..._184,
..._185,
..._186,
..._187
};
}
32 changes: 16 additions & 16 deletions __fixtures__/misc/output-decimals/agoric/misc/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _176 from "./all_fields";
import * as _177 from "./eval_request";
import * as _178 from "./nest";
import * as _179 from "./tx";
import * as _180 from "./tx.amino";
import * as _181 from "./tx.registry";
import * as _182 from "./tx.rpc.msg";
import * as _183 from "./rpc.tx";
import * as _188 from "./all_fields";
import * as _189 from "./eval_request";
import * as _190 from "./nest";
import * as _191 from "./tx";
import * as _192 from "./tx.amino";
import * as _193 from "./tx.registry";
import * as _194 from "./tx.rpc.msg";
import * as _195 from "./rpc.tx";
export const misc = {
..._176,
..._177,
..._178,
..._179,
..._180,
..._181,
..._182,
..._188,
..._189,
..._190,
..._191,
..._192,
..._193,
..._194,
ClientFactory: {
..._183
..._195
}
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _156 from "./gogo";
import * as _168 from "./gogo";
export const gogoproto = {
..._156
..._168
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _157 from "./api/expr/v1alpha1/eval";
import * as _158 from "./protobuf/any";
import * as _159 from "./protobuf/descriptor";
import * as _160 from "./protobuf/duration";
import * as _161 from "./protobuf/timestamp";
import * as _169 from "./api/expr/v1alpha1/eval";
import * as _170 from "./protobuf/any";
import * as _171 from "./protobuf/descriptor";
import * as _172 from "./protobuf/duration";
import * as _173 from "./protobuf/timestamp";
export namespace google {
export namespace api {
export namespace expr {
export const v1alpha1 = {
..._157
..._169
};
}
}
export const protobuf = {
..._158,
..._159,
..._160,
..._161
..._170,
..._171,
..._172,
..._173
};
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _162 from "./all_fields";
import * as _163 from "./eval_request";
import * as _164 from "./nest";
import * as _165 from "./tx";
import * as _166 from "./tx.amino";
import * as _167 from "./tx.registry";
import * as _168 from "./tx.rpc.msg";
import * as _169 from "./rpc.tx";
import * as _174 from "./all_fields";
import * as _175 from "./eval_request";
import * as _176 from "./nest";
import * as _177 from "./tx";
import * as _178 from "./tx.amino";
import * as _179 from "./tx.registry";
import * as _180 from "./tx.rpc.msg";
import * as _181 from "./rpc.tx";
export const misc = {
..._162,
..._163,
..._164,
..._165,
..._166,
..._167,
..._168,
..._174,
..._175,
..._176,
..._177,
..._178,
..._179,
..._180,
ClientFactory: {
..._169
..._181
}
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _142 from "./gogo";
import * as _154 from "./gogo";
export const gogoproto = {
..._142
..._154
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _143 from "./api/expr/v1alpha1/eval";
import * as _144 from "./protobuf/any";
import * as _145 from "./protobuf/descriptor";
import * as _146 from "./protobuf/duration";
import * as _147 from "./protobuf/timestamp";
import * as _155 from "./api/expr/v1alpha1/eval";
import * as _156 from "./protobuf/any";
import * as _157 from "./protobuf/descriptor";
import * as _158 from "./protobuf/duration";
import * as _159 from "./protobuf/timestamp";
export namespace google {
export namespace api {
export namespace expr {
export const v1alpha1 = {
..._143
..._155
};
}
}
export const protobuf = {
..._144,
..._145,
..._146,
..._147
..._156,
..._157,
..._158,
..._159
};
}
32 changes: 16 additions & 16 deletions __fixtures__/misc/output-proto-amino/amino-interface/misc/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _148 from "./all_fields";
import * as _149 from "./eval_request";
import * as _150 from "./nest";
import * as _151 from "./tx";
import * as _152 from "./tx.amino";
import * as _153 from "./tx.registry";
import * as _154 from "./tx.rpc.msg";
import * as _155 from "./rpc.tx";
import * as _160 from "./all_fields";
import * as _161 from "./eval_request";
import * as _162 from "./nest";
import * as _163 from "./tx";
import * as _164 from "./tx.amino";
import * as _165 from "./tx.registry";
import * as _166 from "./tx.rpc.msg";
import * as _167 from "./rpc.tx";
export const misc = {
..._148,
..._149,
..._150,
..._151,
..._152,
..._153,
..._154,
..._160,
..._161,
..._162,
..._163,
..._164,
..._165,
..._166,
ClientFactory: {
..._155
..._167
}
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _114 from "./gogo";
import * as _126 from "./gogo";
export const gogoproto = {
..._114
..._126
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _115 from "./api/expr/v1alpha1/eval";
import * as _116 from "./protobuf/any";
import * as _117 from "./protobuf/descriptor";
import * as _118 from "./protobuf/duration";
import * as _119 from "./protobuf/timestamp";
import * as _127 from "./api/expr/v1alpha1/eval";
import * as _128 from "./protobuf/any";
import * as _129 from "./protobuf/descriptor";
import * as _130 from "./protobuf/duration";
import * as _131 from "./protobuf/timestamp";
export namespace google {
export namespace api {
export namespace expr {
export const v1alpha1 = {
..._115
..._127
};
}
}
export const protobuf = {
..._116,
..._117,
..._118,
..._119
..._128,
..._129,
..._130,
..._131
};
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as _120 from "./all_fields";
import * as _121 from "./eval_request";
import * as _122 from "./nest";
import * as _123 from "./tx";
import * as _124 from "./tx.amino";
import * as _125 from "./tx.registry";
import * as _126 from "./tx.rpc.msg";
import * as _127 from "./rpc.tx";
import * as _132 from "./all_fields";
import * as _133 from "./eval_request";
import * as _134 from "./nest";
import * as _135 from "./tx";
import * as _136 from "./tx.amino";
import * as _137 from "./tx.registry";
import * as _138 from "./tx.rpc.msg";
import * as _139 from "./rpc.tx";
export const misc = {
..._120,
..._121,
..._122,
..._123,
..._124,
..._125,
..._126,
..._132,
..._133,
..._134,
..._135,
..._136,
..._137,
..._138,
ClientFactory: {
..._127
..._139
}
};
Loading

0 comments on commit d7f9bbe

Please sign in to comment.