538 questions
1 vote
0 answers
290 views
Use OAuth 2.0 Authorization Code with PKCE in Scalar for .net
I have a working implementation for scalar for an endpoint that requires authentication via entraId. application.MapScalarApiReference( options => options ....
2 votes
0 answers
198 views
Scalar documentation - multiple response types for one endpoint
I'm learning Scalar instead of Swagger now, and i can not find out how to configure more than 1 common response types over all endpoints in project. I mean that, that i want to have endpoints which ...
0 votes
0 answers
165 views
Alternative to Swagger's IncludeXMLComments in native MS OpenApi on .NET9
Is there an alternative to Swagger's configuration IncludeXMLComments in native MS OpenApi which is introduced on .NET9? I'm running a project on .net8 and migrating to .net9 and wanted to migrate to ...
0 votes
1 answer
1k views
How do I enable Scalar to ask for an API Key in .Net 9?
I have 2 sets of controllers: internal and external I have JWT auth on internals and API Key auth on externals. How do I setup my API to enable Scalar to ask for API key but only for the external ...
0 votes
1 answer
46 views
Azure SQL Server, Geographic Data and Scalar Variable Error
I have a dedicated Azure SQL environment where I am using a loop to get US States names like 'AB' or 'NY' etc and also geographical boundaries from the same table. Code and error below: DECLARE ...
0 votes
2 answers
2k views
Trying to use scalar with .net9, getting the error Request finished HTTP/2 GET https://localhost:7160/scalar/v1/scalar.aspnetcore.js - 404
Trying to implement Scalar in a .net9 aspcore app. Doing the basics by using OpenApi. When i run it I see the UI but i dont see any of my methods. In the output window i see Request finished HTTP/2 ...
9 votes
5 answers
6k views
How to Add JWT Token Support Globally in Scalar for a .NET 9 Application?
I'm working on enabling Scalar in my .NET 9 application and need to configure it to use JWT tokens globally, similar to how Swagger allows adding JWT token authentication globally. However, I couldn't ...
0 votes
0 answers
48 views
why am I am getting an the: sns.lineplot(x=anomaly_df['Date'], y=scaler.inverse_transform(anomaly_df['Close/Last']))
import numpy as np from keras.models import Sequential from keras.layers import LSTM, Input, Dropout from keras.layers import Dense from keras.layers import RepeatVector from keras.layers import ...
2 votes
2 answers
938 views
host Address is [::] When i run my dotnet 9 api on docker
I have an API with .NET 9 while I run the API directory by Kestrel or IIS everything is ok and openapi/v1.json is like this : "open API": "3.0.1", "info": { "...
0 votes
0 answers
389 views
How can I properly use Dynamic SQL queries using dynamic pivoting inside DBeaver's SQL Console?
Currently I have an SQL query where I am pivoting the values of one table and then joining that data with another table. The query works but the problem is that I had to hardcode the pivoting for each ...
0 votes
1 answer
166 views
Faster way to do element wise multiplication of matrices and scalar multiplicatión of matrices in R
i am doing element wise multiplication of large matrices, so i want to know if there is any way to do it faster than using the * operator from de R Base. I have been trying to find out but most of the ...
0 votes
0 answers
113 views
GraphQL iOS Swift Custom Scalar
I'm using GraphQL latest version 1.9.3 They have removed option of passThroughCustomScalar Currently response is coming in dictionary form and schema.graphql has generated as below public typealias ...
4 votes
1 answer
161 views
Why does $null behave differently in ForEach-Object {} vs foreach()?
Considering the following examples: $null foreach ($n in $null) {'This is a $null test'} (no output) $null | ForEach-Object {'This is a $null test'} This is a $null test $null -in $null True $null -...
2 votes
1 answer
552 views
What is a "Scalar" in PowerShell
The term scalar is often used in PowerShell issues and documentation along with e.g. the about_Comparison_Operators document. I think, I do have an abstract understanding of its meaning (in fact I am ...
1 vote
1 answer
59 views
using scalars with short-circuiting or
For a BMI calculator we need to create in programming class, I need to make sure that the values of size and weight are insinde of a certain range of numbers. Every time the program tells me that I ...