Skip to content

Commit

Permalink
feat: add file opts for validate api
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Nov 27, 2023
1 parent 3c012cb commit 280d914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kclvm/api/src/service/service_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl KclvmServiceImpl {
"json" => LoaderKind::JSON,
_ => LoaderKind::JSON,
},
None,
transform_str_para(&args.file),
transform_str_para(&args.code),
)) {
Ok(success) => (success, "".to_string()),
Expand Down
9 changes: 5 additions & 4 deletions kclvm/spec/gpyrpc/gpyrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,11 @@ message GetSchemaTypeMapping_Result {

message ValidateCode_Args {
string data = 1;
string code = 2;
string schema = 3;
string attribute_name = 4;
string format = 5;
string file = 2;
string code = 3;
string schema = 4;
string attribute_name = 5;
string format = 6;
}

message ValidateCode_Result {
Expand Down

0 comments on commit 280d914

Please sign in to comment.