Skip to content

Define JSON Schema for user agent payload #3378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

paulmedynski
Copy link
Contributor

@paulmedynski paulmedynski commented May 27, 2025

Description

Defines a JSON schema for V1 of the user agent JSON payload. Full feature spec is here:

https://microsoft.sharepoint-df.com/:w:/t/sqldevx/ERIWTt0zlCxLroNHyaPlKYwBI_LNSff6iy_wXZ8xX6nctQ?e=8yuhBi

I also updated the EditorConfig to use 2 space indent for all JSON files.

@paulmedynski paulmedynski added this to the 6.1-preview2 milestone May 27, 2025
@Copilot Copilot AI review requested due to automatic review settings May 27, 2025 14:54
@paulmedynski paulmedynski requested a review from a team as a code owner May 27, 2025 14:54
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a JSON Schema definition for the user agent payload sent during driver login and updates the EditorConfig to use a 2-space indent for JSON and JSONC files.

  • Added spec/user-agent.jsonc to define the structure and validation rules for the user agent payload.
  • Updated .editorconfig to include all JSON and JSONC files with a 2-space indent.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
spec/user-agent.jsonc New JSON schema defining user agent payload.
.editorconfig Updated JSON section to enforce 2-space indents.

- Created a JSON Schema that defines the user agent JSON payload format.
@paulmedynski paulmedynski force-pushed the dev/paul/user-agent branch from dbafc5f to d095fb0 Compare May 28, 2025 09:38
- Removed "ext" section, which needs further planning.
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.47%. Comparing base (1eabf80) to head (652f9b4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3378      +/-   ##
==========================================
- Coverage   64.47%   64.47%   -0.01%     
==========================================
  Files         298      298              
  Lines       65525    65525              
==========================================
- Hits        42248    42244       -4     
- Misses      23277    23281       +4     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 68.50% <ø> (-0.01%) ⬇️
netfx 65.34% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Renamed to identify as v1 of the schema.
Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

I guess this just adds the file for information purposes? 🤷‍♂️ That's fine I guess.

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.

3 participants