Skip to content

Commit

Permalink
Merge pull request #78 from Azure/resolve-issue-34
Browse files Browse the repository at this point in the history
Fixed a bug where both apiInformation.json and specification.yaml needed to be modified for the Publisher  to push api changes
  • Loading branch information
waelkdouh authored Jun 29, 2022
2 parents 218572c + 3de2925 commit 782993e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/code/publisher/Publisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -823,11 +823,12 @@ private async ValueTask PutApiVersionSetInformationFile(ApiVersionSetInformation

private async ValueTask PutApiInformationAndSpecificationFiles(IReadOnlyCollection<ApiInformationFile> informationFiles, IReadOnlyCollection<ApiSpecificationFile> specificationFiles, CancellationToken cancellationToken)
{
var filePairs = informationFiles.LeftJoin(specificationFiles,
informationFile => informationFile.ApiDirectory,
specificationFile => specificationFile.ApiDirectory,
informationFile => (InformationFile: informationFile, SpecificationFile: null as ApiSpecificationFile),
(informationFile, specificationFile) => (InformationFile: informationFile, SpecificationFile: specificationFile));
var filePairs = informationFiles.FullJoin(specificationFiles,
informationFile => informationFile.ApiDirectory,
specificationFile => specificationFile.ApiDirectory,
informationFile => (InformationFile: informationFile, SpecificationFile: null as ApiSpecificationFile),
specificationFile => (InformationFile: ApiInformationFile.From(specificationFile.ApiDirectory), SpecificationFile: specificationFile),
(informationFile, specificationFile) => (InformationFile: informationFile, SpecificationFile: specificationFile));

// Current revisions need to be processed first or else there's an error.
var splitCurrentRevisions = filePairs.Select(files =>
Expand Down

0 comments on commit 782993e

Please sign in to comment.