danielgerlag / danielgerlag/workflow-core
WorflowCore.DSL cannot load yaml/json definitions due to JsonObjectAttribute type
- Dominant language
- C#
- Stars
- 5.9k
- Forks
- 1.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
**Describe the bug**
A clear and concise description of what the bug is.
getting the following when using workflowcore.dsl
`System.TypeLoadException: Could not load type 'Microsoft.IdentityModel.Json.JsonObjectAttribute' from assembly 'Microsoft.IdentityModel.Tokens, Version=7.5.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandle(Int32 `
**To Reproduce**
create yaml example add inputs:
Id: Worflow1
Version: 1
Steps:
- Id: GetValues
StepType: My.GetCases, My.Service
NextStepId: MakeCall
Inputs:
Prompt: "Get values limit result to 100"
**Expected behavior**
expected to populate StepBody with property
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the TypeLoadException with the YAML definition shown in the issue, then inspect the WorkflowCore.DSL entry point that loads YAML or JSON and the Microsoft.IdentityModel.Tokens dependency. Done means the definition loads successfully and populates the StepBody inputs without the JsonObjectAttribute type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100