Skip to content

Draft rest 1.1 doc for review - #43

Closed
yao-msft wants to merge 4 commits into
mainfrom
user/yaosun/rest11
Closed

yao-msft wants to merge 4 commits into
mainfrom
user/yaosun/rest11

Conversation

@yao-msft

@yao-msft yao-msft commented Jul 9, 2021

Copy link
Copy Markdown
Contributor

I directly modified on the v1.0 spec for easier review of what changed between 1.1.0 and 1.0.0.

Will send another pr with copy of v1.1.0 schema after finalized.

Comment thread documentation/WinGet-1.0.0.yaml Outdated
AgreementUrl:
description: The agreement url.
$ref: '#/components/schemas/Url'
required:

@JohnMcPMS JohnMcPMS Jul 9, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there no "one of" concept in the schema definition? Or should we have two subtypes and an option? #Closed

Comment thread documentation/WinGet-1.0.0.yaml Outdated
# Server API Calls
/information:
parameters:
- $ref: '#/components/parameters/APIVersion'

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  • $ref: '#/components/parameters/APIVersion'

remove #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
Windows-Package-Manager:
description: Custom header value to be passed along all rest calls from winget.
type: string
maxLength: 10000

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

10000

1024 #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
type: object
properties:
AgreementLabel:
description: The label of the agreement. i.e. EULA, AgeRating, etc

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The label of the agreement. i.e. EULA, AgeRating, etc

needs to be localized #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The label of the agreement. i.e. EULA, AgeRating, etc
type: string
minLength: 1
maxLength: 40

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

40

100 #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The agreement text content.
nullable: true
type: string
minLength: 3

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

3

1 #Resolved

minLength: 1
maxLength: 40
Agreement:
description: The agreement text content.

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The agreement text content.

either agreement or url is required
we would Bold labels
show in the order of the list #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The agreement url.
$ref: '#/components/schemas/Url'
required:
- AgreementLabel

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

remove #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: List of agreements.
type: array
nullable: true
uniqueItems: true

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

uniqueItems: true

remove #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: Package release notes.
type: string
nullable: true
minLength: 3

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

3

1 #Resolved

$ref: '#/components/schemas/Markets'
required:
- Architecture
- InstallerUrl

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  • InstallerUrl

update related description #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
enum:
- neutral

ProductId:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ProductId

MSStoreProductIdentifier #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The installer markets
type: object
properties:
AllowedMarkets:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AllowedMarkets

oneof:
#Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: Indicates whether the installer requires an install location provided.
type: boolean

AutoPin:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AutoPin

RequireExplicitUpgrade #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The Publisher
type: string
nullable: true
minLength: 2

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2

1 #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: The DisplayName
type: string
nullable: true
minLength: 2

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2

1 #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
SourceAgreement:
description: The source agreement users must accept before using the source.
type: string
minLength: 3

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

3

1 #Closed

Comment thread documentation/WinGet-1.0.0.yaml Outdated
$ref: '#/components/schemas/MinimumOSVersion'
InstallerType:
$ref: '#/components/schemas/InstallerType'
NestedInstallerType:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NestedInstallerType:

remove #Resolved

AppsAndFeaturesEntry:
description: Various key values under installer's ARP entry.
type: object
properties:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

properties:

InstallerType: #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
description: Various key values under installer's ARP entry.
type: object
properties:
AppName:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AppName

update to registry keys #Resolved

Comment thread documentation/WinGet-1.0.0.yaml Outdated
minLength: 3
maxLength: 128

SourceAgreement:

@yao-msft yao-msft Jul 9, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SourceAgreement

SourceAgreements:
Agrements: $ref: Agreements
AgreementsIdentifier: #Resolved

@yao-msft yao-msft closed this Jan 27, 2022
@msftrubengu
Ruben Guerrero (msftrubengu) deleted the user/yaosun/rest11 branch June 17, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants