I have a python code that sends objects to java code.
my python object is a dataclass like this:
@dataclass
class MyObject:
name: str
lastName: str
and I recoded this same object in java.
But I would like the attributes of these python and java objects to be identical, to be tested as when you test the structure of an xml file with an xsd file.
I would like an xsd file for example that will test the attributes of my python and java objects. and check that there is a name and lastname and that they are string type.
in advance thank you