You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a big schema (https://www.omg.org/spec/SysML/20230201/SysML.json) that seems to refine types a lot, causing quite some warnings by typify. Please note that the schema uses https references to itself, so for it to work with this crate I processed it a little, changing all https$refs into local $refs. Find the edited json file attached below.
This yields the following three errors (in many many instances):
--> /work/sysml-v2-sql/target/debug/build/sysml-v2-sql-fe9e4667a4b133c5/out/codegen.rs:13108:9 |13108 | type_: Vec<Identified>, | ^^^^^ used in a pattern more than once
error[E0124]: field `type_` is already declared --> /work/sysml-v2-sql/target/debug/build/sysml-v2-sql-fe9e4667a4b133c5/out/codegen.rs:1315:5 |1313 | pub type_: String, | ----------------- `type_` first declared here1314 | #[serde(rename = "type")]1315 | pub type_: Vec<Identified>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field already declared
Overview:
I have a big schema (https://www.omg.org/spec/SysML/20230201/SysML.json) that seems to refine types a lot, causing quite some warnings by typify. Please note that the schema uses
https
references to itself, so for it to work with this crate I processed it a little, changing allhttps
$ref
s into local$refs
. Find the edited json file attached below.Cause:
The cause is code like this:
Error:
This yields the following three errors (in many many instances):
Files for reproduction:
The text was updated successfully, but these errors were encountered: