Skip to content

Conversation

@abhishekkumams
Copy link
Contributor

@abhishekkumams abhishekkumams commented Nov 13, 2022

Why make this change?

What is this change?

  • Using @() which is the correct way to define Arrays in powershell instead of using '[]' and converting to jsonArray.
  • removing pipeline from the ConvertTo -Json
  • the pipeline approach was wrong in the first place, arrays are always iterated when passed to the pipeline.

How was this tested?

  • checked the generated manifest file

image

fix single object array to object conversion
@abhishekkumams abhishekkumams added bug Something isn't working release labels Nov 13, 2022
@abhishekkumams abhishekkumams added this to the Nov2022 milestone Nov 13, 2022
@abhishekkumams abhishekkumams self-assigned this Nov 13, 2022
@abhishekkumams abhishekkumams changed the title Fix JsonArray with single element to JsonObject conversion Fix Manifest file creation for JsonArray with single element Nov 13, 2022
@abhishekkumams abhishekkumams marked this pull request as draft November 13, 2022 13:09
@abhishekkumams abhishekkumams marked this pull request as ready for review December 2, 2022 05:16
Copy link
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments about syntax

Copy link
Contributor

@aaronburtle aaronburtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM only if we confirmed SWA CLI is already accepting this modified manifest file from object to array?

@abhishekkumams abhishekkumams merged commit 437dcf5 into main Dec 3, 2022
@abhishekkumams abhishekkumams deleted the abhishekkumams-patch-1 branch December 3, 2022 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Irregularity in manifest file

6 participants