Remove all models/operations before generating new ones
This is an improvement, because otherwise now non-existing models and
operations will be left behind as cruft.
@@ -12,6 +12,9 @@ if [ ! -f $SWAGGER ]; then
chmod +x $SWAGGER
fi
+# Remove old stuff.
+(cd $DIR/; rm -rf models restapi/operations/)
+
(cd $DIR/..; $SWAGGER generate server --name=weaviate --spec=openapi-specs/schema.json --default-scheme=https)
(cd $DIR/..; $SWAGGER generate client --spec=openapi-specs/schema.json --default-scheme=https)
