Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 63 additions & 2 deletions docs/schema-changes/eor/contract-details/countries/MYS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,72 @@ Schema versions for employee onboarding in Malaysia.

## Current Version

**Contract Details:** v2 (Since SDK 1.23.0)
**Contract Details:** v5

## Contract Details

### v2 - Current (Since SDK 1.23.0, March 2026)
### v5 - Current

**What changed:**

- The contract duration fields move to the shared `contract_duration` component with unlimited maximum duration. The standalone `contract_duration_type` and `contract_end_date` field definitions and the contract duration help center metadata are removed from the schema (inferred from the schema diff).

**Migration:**

```tsx
<OnboardingFlow
options={{
jsonSchemaVersionByCountry: {
MYS: { contract_details: 5 },
},
}}
/>
```

---

### v4

**What changed:**

- Adds an extreme-salary acknowledgement: a warning and a required checkbox appear when the annual salary is at or above the USD 1,000,000 equivalent. Additive and flag-gated, so no action is required unless a submitted salary crosses that threshold.

**Migration:**

```tsx
<OnboardingFlow
options={{
jsonSchemaVersionByCountry: {
MYS: { contract_details: 4 },
},
}}
/>
```

---

### v3

**What changed:**

- `annual_gross_salary` adds high-salary reserve messaging, grouped with the currency selection in a titled fieldset. Additive and flag-gated, so no action is required.
- The form moves to the JSON Schema Form v1 engine. Validation and form generation follow v1 semantics.

**Migration:**

```tsx
<OnboardingFlow
options={{
jsonSchemaVersionByCountry: {
MYS: { contract_details: 3 },
},
}}
/>
```

---

### v2 (Since SDK 1.23.0, March 2026)

**What changed:**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ These countries have upgraded to different versions, check each guide to know ho
| Kenya | KEN | v2 | March 2026 |
| Lebanon | LBN | v2 | March 2026 |
| Mauritius | MUS | v2 | March 2026 |
| Malaysia | MYS | v2 | March 2026 |
| Malaysia | MYS | v5 | October 2026 |
| Mexico | MEX | v2 | March 2026 |
| Netherlands | NLD | v6 | October 2026 |
| Nigeria | NGA | v5 | October 2026 |
Expand Down
2 changes: 1 addition & 1 deletion example/src/flows/Onboarding/jsonSchemaVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const ONBOARDING_JSON_SCHEMA_VERSION_BY_COUNTRY = {
},
MYS: {
// Malaysia
contract_details: 2,
contract_details: 5,
},
NGA: {
// Nigeria
Expand Down
Loading