Gewünschtes Verhalten: bar wird nach Foo .
validiert
Code: Select all
y = Bar(bar=Foo('xxx'))
< /code>
gewünschte Ausgabe: < /p>
print(y.json())
# {"bar": "xxx"}
Code: Select all
y = Bar(bar=Foo('xxx'))
< /code>
gewünschte Ausgabe: < /p>
print(y.json())
# {"bar": "xxx"}