Skip to content

Commit 71fbd88

Browse files
feat(parser): propagate MaxAPILevel through spec-to-codegen pipeline
1 parent 7489d27 commit 71fbd88

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tools/cmd/spec2go/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ func convertParamToAST(
326326
Type: convertTypeRefToAST(p.Type),
327327
Annots: convertAnnotationNamesToAST(p.Annotations),
328328
MinAPILevel: p.MinAPILevel,
329+
MaxAPILevel: p.MaxAPILevel,
329330
}
330331

331332
switch p.Direction {

tools/pkg/parser/param_decl.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ type ParamDecl struct {
88
Type *TypeSpecifier
99
ParamName string
1010
MinAPILevel int
11+
MaxAPILevel int
1112
}

0 commit comments

Comments
 (0)