Changes between 0.4.0-alpha.3 and v1.0.0.0: Null values changed to '' and 24h time values to 12h time values

Open
#262 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start by reproducing apiops publish with the source JSON and environment details from the issue, then trace the publish path that serializes extracted values. Done means published output preserves null values and the original 24-hour time values; add or update a regression test for both cases.

Written by the indexing model from the issue text.

Description

type:bug
Command that triggered the bug

apiops publish

Expected behavior

The extracted values are fine but after publish the values are changes:
Example:
Source JSON:
"firstSeen": "2026-07-11T14:01:26.0000000+00:00",
"lastSeen": "2026-07-11T14:58:54.0000000+00:00",
"zone": null,
Published values:
"firstSeen": "2026-07-11T02:01:26.0000000+00:00",
"lastSeen": "2026-07-11T02:58:54.0000000+00:00",
"zone": '',

Actual behavior

Null values get replaced with empty string '' and 24h time values are replaced with 12h format values with no AM/PM flag.

apiops CLI version

1.0.0.0

Environment details

command runs in a gitlab pipeline on self hosted gitlab runner image: mcr.microsoft.com/dotnet/sdk:6.0
Nodejs version node-v22.14.0-linux-x64

CI/CD environment

Other

Is this bug blocking you?

Yes

Dominant language
TypeScript
Stars
29
Forks
10
Avg merge
1d 14h
Merged PRs (30d)
22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/apiops-cli

All issues in Azure/apiops-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.