Skip to content

Allow entities to be mapped to a JsonApiResource : IJsonApiResource #2

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

Closed
2 tasks done
jaredcnance opened this issue Aug 24, 2016 · 0 comments
Closed
2 tasks done

Comments

@jaredcnance
Copy link
Contributor

jaredcnance commented Aug 24, 2016

Eliminate the requirement that entities implement IJsonApiResource.

  • the resource will act as a "ViewModel"/"Presenter" and will define:
    • valid properties of the JsonApiDatum
    • cast the Id to a string
  • probably use AutoMapper?
jaredcnance pushed a commit that referenced this issue Jul 31, 2018
rachael-ross referenced this issue in projekt202/JsonApiDotNetCore May 12, 2021
…rn-Updated

Added AlwaysReturnResourceOnCreateUpdate
bkoelman added a commit that referenced this issue Oct 7, 2022
…with .NET 7 RC1 in cibuild.

Details from log:

[00:04:40] JetBrains Inspect Code 2022.2.3
[00:04:40] Running on AMD 64 in 64-bit mode, .NET Core 3.1.28 under Microsoft Windows 10.0.17763
[00:04:59] Warning: Unknown profile field: targetProject
[00:05:09] Failed to flush changes for project: JsonApiDotNetCoreExample, target framework: net7.0 Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'languageVersion') Actual value was CSharp11.
[00:05:09]
[00:05:09] --- EXCEPTION #1/2 [ArgumentOutOfRangeException]
[00:05:09] ExceptionPath = Root.InnerException
[00:05:09] ClassName = System.ArgumentOutOfRangeException
[00:05:09] Data.ThreadLocalDebugInfo = “
[00:05:09]   property `RoslynWorker.RoslynModel.session.$.changeState` (17375533978201634389)
[00:05:09]    -> Scheduler: 'Roslyn worker scheduler' on thread `:1`
[00:05:09] ”
[00:05:09] HResult = COR_E_ARGUMENTOUTOFRANGE=80131502
[00:05:09] Source = JetBrains.Roslyn.Worker
[00:05:09] ParamName = languageVersion
[00:05:09] ActualValue = CSharp11
[00:05:09] StackTraceString = “
[00:05:09]   at JetBrains.Roslyn.Worker.Util.ProjectModelUtil.ToRoslynLanguageVersion(CSharpLanguageVersion languageVersion)
[00:05:09]      at JetBrains.Roslyn.Worker.Util.ProjectModelUtil.GetCSharpLanguageVersion(RoslynProjectContent content)
[00:05:09]      at JetBrains.Roslyn.Worker.Util.ProjectModelUtil.<GetParseOptions>g__GetCSharpParseOptions|15_0(<>c__DisplayClass15_0& )
[00:05:09]      at JetBrains.Roslyn.Worker.Util.ProjectModelUtil.GetParseOptions(RoslynProject project, RoslynProjectContent content)
[00:05:09]      at JetBrains.Roslyn.Worker.Workspaces.Collectors.RoslynProjectChangesCollector.FlushChangedParseOptions()
[00:05:09]      at JetBrains.Roslyn.Worker.Workspaces.Collectors.RoslynProjectChangesCollector.Flush()
[00:05:09]      at JetBrains.Roslyn.Worker.Workspaces.RoslynWorkspace.FlushChanges()
[00:05:09] ”
[00:05:09]
[00:05:09] --- Outer ---
[00:05:09]
[00:05:09] --- EXCEPTION #2/2 [LoggerException]
[00:05:09] Message = “
[00:05:09]   Failed to flush changes for project: JsonApiDotNetCoreExample, target framework: net7.0 Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'languageVersion')
[00:05:09]   Actual value was CSharp11.
[00:05:09] ”
[00:05:09] ExceptionPath = Root
[00:05:09] ClassName = JetBrains.Util.LoggerException
[00:05:09] InnerException = “Exception #1 at Root.InnerException”
[00:05:09] HResult = COR_E_APPLICATION=80131600
[00:05:09] StackTraceString = “
[00:05:09]   at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
[00:05:09]      at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception ex, String message)
[00:05:09]      at JetBrains.Roslyn.Worker.Workspaces.RoslynWorkspace.FlushChanges()
[00:05:09]      at JetBrains.Roslyn.Worker.Workspaces.RoslynWorkspace.OnChangeStateChanged(ChangeState state)
[00:05:09]      at JetBrains.Collections.Viewable.SignalBase`1.Fire(T value)
[00:05:09]      at JetBrains.Collections.Viewable.ViewableProperty`1.set_Value(T value)
[00:05:09]      at JetBrains.Rd.Impl.RdProperty`1.OnWireReceived(UnsafeReader reader)
[00:05:09]      at JetBrains.Rd.Impl.MessageBroker.Execute(IRdWireable reactive, Byte[] msg)
[00:05:09]      at JetBrains.Rd.Impl.MessageBroker.Invoke(IRdWireable reactive, Byte[] msg, Boolean sync)
[00:05:09]      at JetBrains.Rd.Impl.MessageBroker.<>c__DisplayClass14_0.<Dispatch>b__1()
[00:05:09]      at JetBrains.Collections.Viewable.SingleThreadScheduler.ExecuteOneAction(Boolean blockIfNoActionAvailable)
[00:05:09]      at JetBrains.Collections.Viewable.SingleThreadScheduler.Run()
[00:05:09]      at JetBrains.Collections.Viewable.SingleThreadScheduler.RunInCurrentStackframe(Lifetime lifetime, String name, Action`1 beforeStart)
[00:05:09]      at JetBrains.Roslyn.Worker.RoslynWorkerController.Start(String portValue, String parentPid, RoslynWorkerLogEventHandler logEventHandler)
[00:05:09]      at JetBrains.Roslyn.Worker.RoslynWorkerProgram.Main(String portValue, String parentPid, Boolean installResolveHooks)
[00:05:09]      at JetBrains.Roslyn.Worker.RoslynWorkerProgram.Main(String[] args)
[00:05:09] ”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant