Added OrMetadata Transform
@@ -129,3 +129,16 @@ directive:
}
}
```
+
+### Change to OrMetadata
+``` yaml
+directive:
+- from: swagger-document
+ where: $.definitions.BlobItemInternal
+ transform: |
+ $.discriminator = "OrMetadata";
+ $.required = [ "OrMetadata" ];
+ $.properties.OrMetadata = $.properties.ObjectReplicationMetadata;
+ $.properties.OrMetadata["x-ms-client-name"] = "ObjectReplicationMetadata";
+ delete $.properties.ObjectReplicationMetadata;
+```
\ No newline at end of file
