Questions tagged [dynamic-properties]
75 questions
0
votes
1 answer
How do I get edge weights from GraphML into boost::dijkstra_shortest_paths?
I am trying to practice some C++ for use with graphs/networks. I thought I would write a quick program that reads a GraphML description of a network with edge weights and computes its diameter (or, to start with, just computes the shortest distance…

Anaphory
- 6,045
- 4
- 37
- 68
0
votes
2 answers
Asp .Net Core Json deserialize to model
Returns Json format data to me from an api.
However, the type of the "FuelType" property inside the object may be different. For example, 1 time comes as follows:
{
...
fuelType: "gasoline"
...
}}
But then it can happen:
{
...
fuelType:…

Elchin
- 39
- 6
0
votes
1 answer
How to validate dynamic property-name on REST API in nest.js app?
Task is to validate payload in nest.js app before managing one.
Each payload can contain tag objects (1 - 11).
Every tag object can have only one property and value (property determined by request)
Tag objects should be validated:
property should…

Sergii
- 7,044
- 14
- 58
- 116
0
votes
1 answer
How to test multiple instance creation of a bean of one class filled with values from application.properties?
After creating multiple beans of a specific class using @PostConstruct according to Multiple instances of a bean of one class filled with values from application.properties
I wonder how I could test the creation of those bean instances.
I tried it…

du-it
- 2,561
- 8
- 42
- 80
0
votes
2 answers
Generate Data class on dynamic value inside a JSON payload
I have a payload which look like this :
{
"data": {
"12345": {
"is_indexable": true,
"description": "Lorem description",
"items": {
"id": 2644,
"name": "Naming here"
…

Alex Lombry
- 1
- 2
0
votes
1 answer
Dynamically create property based on if CSV has corresponding header using CSV Helper library
Using CSV Helper, I'm wondering if there is there a way to dynamically create class properties based on whether or not the corresponding column is found in my csv file.
The file I'm working with may or may not have a column titled 'ACTIVITY'. If…

user1880387
- 43
- 4
0
votes
1 answer
Adding dynamic properties to a class that is bound to UI in WPF app via DataTemplate (dynamic properties that are specific to an instance)
I have a WPF application. I have A Person Class that looks as following:
public class Person
{
public Person(string id, string name, int age)
{
Id = id;
Name = name;
Age = age;
}
public string Id { set; get;…

Cod Fish
- 917
- 1
- 8
- 37
0
votes
1 answer
.Net Core webApi Adding properties at runtime to an incoming Dto
I have a situation where I have a core webApi endpoint. I would like to be able to serialize the incoming Json to a Dto. The Dto would contain the necessary fields, but the incoming request may contain additional properties (different for some…

Ronald Herhuth
- 51
- 1
- 3
0
votes
1 answer
Add condition to .sync in vue.js
I have a component that takes an options property. The options can be synced. As described below.
...
The component is found in a parent component that has a shouldSync prop. As described…

Kamga Simo Junior
- 1,679
- 2
- 16
- 30
0
votes
1 answer
WebStorm: JavaScript code-complete for dynamically generated class methods
How to annotate a dynamically generated class method in WebStorm so it shows up in the autocomplete?
So far I was able to accomplish similar thing for properties:
/**
* @property prop1
* @property prop2
*/
class MyClass{
//empty class
}
Now…

vir us
- 9,920
- 6
- 57
- 66
0
votes
1 answer
Eclipse equivalent of Intellij Dynamic Properties
in our development team we have both Eclipse & Intellij IDEA users, with my team working mainly in Groovy.
We junior developers on this specific team, while working on an IDE with full access to all the relevant classes we need, still copy-paste the…

noAccountUser
- 3
- 2
0
votes
1 answer
Spring Data Neo4j 5 update dynamic properties
I have the following entity:
@NodeEntity
public class Value {
@Properties(prefix = "property", allowCast = true)
private Map properties;
}
I have added the following properties:
Map properties1 = new…

alexanoid
- 24,051
- 54
- 210
- 410
0
votes
0 answers
Documenting default value of magic properties
@property shows a "magic" property variable that is found inside the class.
Any suggestion for documentation of default value of magic properties? Hopefully in a way that PhpStorm understands.

Handsome Nerd
- 17,114
- 22
- 95
- 173
0
votes
0 answers
updating dynamic properties in grid properties
I'm trying to use property grid to show object property. I have three drop-down lists whose items are dependent on what user selected. I mean that I use dynamic properties and create these properties in run-time. There is a problem here that I…

Nastaran Hakimi
- 695
- 1
- 16
- 36
0
votes
1 answer
Assigning values from a object with known properties
Im writing a class with witch creates a overview over the employees phones.
I am getting the info form Activesync object containing phones as children.
This is my current code. It works if the child dont contain any nulls.
foreach (DirectoryEntry…

Sondre
- 364
- 5
- 13